4.5.1 Despeckle

Perform speckle noise reduction on SAR image.

Detailed description

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

Parameters

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





Parameter key

Parameter type

Parameter description




in

Input image

Input Image

out

Output image

Output Image

ram

Int

Available RAM (Mb)

filter

Choices

speckle filtering method

filter lee

Choice

Lee

filter frost

Choice

Frost

filter gammamap

Choice

GammaMap

filter kuan

Choice

Kuan

filter.lee.rad

Int

Radius

filter.lee.nblooks

Float

nb looks

filter.frost.rad

Int

Radius

filter.frost.deramp

Float

deramp

filter.gammamap.rad

Int

Radius

filter.gammamap.nblooks

Float

nb looks

filter.kuan.rad

Int

Radius

filter.kuan.nblooks

Float

nb looks

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file











Table 4.70: Parameters table for Despeckle.

Input Image Input image.

Output Image Output image.

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

speckle filtering method Available choices are:

Load otb application from xml file Load otb application from xml file

Save otb application to xml file Save otb application to xml file

Example

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:

#!/usr/bin/python 
 
# 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.SetParameterString("filter","lee") 
 
Despeckle.SetParameterInt("filter.lee.rad", 5) 
 
Despeckle.SetParameterString("out", "despeckle.tif") 
 
# The following line execute the application 
Despeckle.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.