# MeanShiftSmoothing

## Brief Description

Perform mean shift filtering

## Tags

Image Filtering,LSMS

## Long Description

This application performs mean shift fitlering (multi-threaded).

## Parameters

- [param] -in <string> The input image.. Mandatory: True. Default Value: ""
- [param] -fout <string> The filtered output image.. Mandatory: True. Default Value: ""
- [param] -foutpos <string> The spatial image output. Spatial image output is a displacement map (pixel position after convergence).. Mandatory: False. Default Value: ""
- [param] -ram <int32> Available memory for processing (in MB). Mandatory: False. Default Value: "128"
- [param] -spatialr <int32> Spatial radius of the neighborhood.. Mandatory: False. Default Value: "5"
- [param] -ranger <float> Range radius defining the radius (expressed in radiometry unit) in the multi-spectral space.. Mandatory: False. Default Value: "15"
- [param] -thres <float> Algorithm iterative scheme will stop if mean-shift vector is below this threshold or if iteration number reached maximum number of iterations.. Mandatory: False. Default Value: "0.1"
- [param] -maxiter <int32> Algorithm iterative scheme will stop if convergence hasn't been reached after the maximum number of iterations.. Mandatory: False. Default Value: "100"
- [param] -rangeramp <float> This coefficient makes dependent the ranger of the colorimetry of the filtered pixel : y = rangeramp*x+ranger.. Mandatory: False. Default Value: "0"
- [param] -modesearch <boolean> If activated pixel iterative convergence is stopped if the path crosses an already converged pixel. Be careful, with this option, the result will slightly depend on thread number. Mandatory: False. Default Value: "True"
- [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: ""

## Limitations

With mode search option, the result will slightly depend on thread number.

## Authors

OTB-Team

## See Also

## Example of use

- in: maur_rgb.png

- fout: MeanShift_FilterOutput.tif

- foutpos: MeanShift_SpatialOutput.tif

- spatialr: 16

- ranger: 16

- thres: 0.1

- maxiter: 100