Despeckle - Despeckle

Perform speckle noise reduction on SAR image.

Detailed description

This application reduce speckle noise. Four methods are available: Lee, Frost, GammaMAP and Kuan.


This section describes in details the parameters available for this application. Table [1] presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is Despeckle .

[1]Table: Parameters table for Despeckle.
Parameter Key Parameter Name Parameter Type
in Input Image Input image
out Output Image Output image
ram Available RAM (Mb) Int
filter speckle filtering method Choices
filter lee Choice Lee
filter frost Choice Frost
filter gammamap Choice GammaMap
filter kuan Choice Kuan
filter.lee.rad Radius Int
filter.lee.nblooks nb looks Float
filter.frost.rad Radius Int
filter.frost.deramp deramp Float
filter.gammamap.rad Radius Int
filter.gammamap.nblooks nb looks Float
filter.kuan.rad Radius Int
filter.kuan.nblooks nb looks Float
inxml Load otb application from xml file XML input parameters file
outxml Save otb application to xml file XML output parameters file

Input Image: Input image.

Output Image: Output image.

Available RAM (Mb): Available memory for processing (in MB).

speckle filtering method Available choices are:

  • Lee: Lee filter.
  • Radius: Radius for lee filter.
  • nb looks: Nb looks for lee filter.
  • Frost: Frost filter.
  • Radius: Radius for frost filter.
  • deramp: Decrease factor declaration.
  • GammaMap: GammaMap filter.
  • Radius: Radius for GammaMAP filter.
  • nb looks: Nb looks for GammaMAP filter.
  • Kuan: Kuan filter.
  • Radius: Radius for Kuan filter.
  • nb looks: Nb looks for Kuan filter.

Load otb application from xml file: Load otb application from xml file.

Save otb application to xml file: Save otb application to xml file.


To run this example in command-line, use the following:

otbcli_Despeckle -in sar.tif -filter lee -filter.lee.rad 5 -out despeckle.tif

To run this example from Python, use the following code snippet:


# Import the otb applications package
import otbApplication

# The following line creates an instance of the Despeckle application
Despeckle = otbApplication.Registry.CreateApplication("Despeckle")

# The following lines set all the application parameters:
Despeckle.SetParameterString("in", "sar.tif")


Despeckle.SetParameterInt("filter.lee.rad", 5)

Despeckle.SetParameterString("out", "despeckle.tif")

# The following line execute the application




This application has been written by OTB-Team.