# ClassificationMapRegularization

## Brief Description

Filters the input labeled image using Majority Voting in a ball shaped neighbordhood.

## Tags

Learning,Image Analysis

## Long Description

This application filters the input labeled image using Majority Voting in a ball shaped neighbordhood. Majority Voting takes the more representative value of all the pixels identified by the ball shaped structuring element and then sets the center pixel to this majority label value. -NoData is the label of the NOT classified pixels in the input image. These input pixels keep their NoData label in the output image. -Pixels with more than 1 majority class are marked as Undecided if the parameter 'ip.suvbool == true', or keep their Original labels otherwise.

## Parameters

- [param] -io <string> This group of parameters allows setting input and output images for classification map regularization by Majority Voting.. Mandatory: True. Default Value: "0"
- [param] -ip <string> This group allows setting parameters for classification map regularization by Majority Voting.. Mandatory: True. Default Value: "0"
- [param] -ram <int32> Available memory for processing (in MB). Mandatory: False. Default Value: "128"

## Limitations

The input image must be a single band labeled image. The structuring element radius must have a minimum value equal to 1 pixel. Please note that the Undecided value must be different from existing labels in the input labeled image.

## Authors

OTB-Team

## See Also

Documentation of the ClassificationMapRegularization application.

## Example of use

- io.in: clLabeledImageQB123_1.tif

- io.out: clLabeledImageQB123_1_CMR_r2_nodl_10_undl_7.tif

- ip.radius: 2

- ip.suvbool: true

- ip.nodatalabel: 10

- ip.undecidedlabel: 7