# 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"
[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> Number of iterations. Mandatory: True. Default Value: "10"

## 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