Commit 10d823be authored by Charles Peyrega's avatar Charles Peyrega

ENH: ClassificationMapRegularization application: regularization of...

ENH: ClassificationMapRegularization application: regularization of classification maps with maximal labels equal to 65535
parent 661dd077
......@@ -42,7 +42,7 @@ public:
itkTypeMacro(ClassificationMapRegularization, otb::Application);
/** Filters typedef */
typedef UInt8ImageType IOLabelImageType;
typedef UInt16ImageType IOLabelImageType;
// Neighborhood majority voting filter type
typedef otb::NeighborhoodMajorityVotingImageFilter<IOLabelImageType> NeighborhoodMajorityVotingFilterType;
......@@ -58,10 +58,10 @@ private:
SetName("ClassificationMapRegularization");
SetDescription("Filters the input labeled image using Majority Voting in a ball shaped neighbordhood.");
SetDocName("Classification Map Regularization");
SetDocLongDescription("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.\n\
SetDocLongDescription("This application filters the input labeled image (with a maximal class label = 65535) 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.\n\
-NoData is the label of the NOT classified pixels in the input image. These input pixels keep their NoData label in the output image.\n\
-Pixels with more than 1 majority class are marked as Undecided if the parameter 'ip.suvbool == true', or keep their Original labels otherwise.");
SetDocLimitations("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.");
SetDocLimitations("The input image must be a single band labeled image (with a maximal class label = 65535). 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.");
SetDocAuthors("OTB-Team");
SetDocSeeAlso("Documentation of the ClassificationMapRegularization application.");
......@@ -122,7 +122,7 @@ private:
m_NeighMajVotingFilter = NeighborhoodMajorityVotingFilterType::New();
// Load input labeled image to regularize
UInt8ImageType::Pointer inImage = GetParameterUInt8Image("io.in");
UInt16ImageType::Pointer inImage = GetParameterUInt16Image("io.in");
// Neighborhood majority voting filter settings
RadiusType rad;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment