# Smoothing

## Brief Description

Apply a smoothing filter to an image

## Tags

Image Filtering

## Long Description

This application applies smoothing filter to an image. Either gaussian, mean, or anisotropic diffusion are available.

## Parameters

- [param] -in <string> Input image to smooth.. Mandatory: True. Default Value: ""
- [param] -out <string> Output smoothed image.. Mandatory: True. Default Value: ""
- [param] -ram <int32> Available memory for processing (in MB). Mandatory: False. Default Value: "128"
- [param] -inxml <string> Load otb application from xml file. Mandatory: False. Default Value: ""
- [param] -outxml <string> Save otb application to xml file. Mandatory: False. Default Value: ""
[choice] -type Smoothing kernel to apply mean,gaussian,anidif. Mandatory: True. Default Value: "anidif"

- [group] -mean

- [param] -type.mean.radius <int32> Mean radius (in pixels). Mandatory: True. Default Value: "2"

- [group] -gaussian

- [param] -type.gaussian.radius <float> Gaussian radius (in pixels). Mandatory: True. Default Value: "2"

- [group] -anidif

- [param] -type.anidif.timestep <float> Diffusion equation time step. Mandatory: True. Default Value: "0.125"
- [param] -type.anidif.nbiter <int32> Controls the sensitivity of the conductance term. Mandatory: True. Default Value: "10"
- [param] -type.anidif.conductance <float> . Mandatory: True. Default Value: "1"

## Limitations

None

## Authors

OTB-Team

## See Also

## Example of use

- Image smoothing using a mean filter.

  - in: Romania_Extract.tif

  - out: smoothedImage_mean.png uchar

  - type: mean

- Image smoothing using an anisotropic diffusion filter.

  - in: Romania_Extract.tif

  - out: smoothedImage_ani.png float

  - type: anidif

  - type.anidif.timestep: 0.1

  - type.anidif.nbiter: 5

  - type.anidif.conductance: 1.5