SetDescription("Performs the small region pruning by merging of a segmentation.");
SetDocName("Merging");
SetDocLongDescription("This application performs the small region pruning by merging of a segmentation. Regions are merged by increasing sizes, starting with regions of size 1, until regions of the minimal acceptable size.");
SetParameterDescription("out","The output image. The output image is the input image where the minimal regions have been merged.");
AddParameter(ParameterType_Int,"minsize","Minimum Region Size");
SetParameterDescription("minsize","Minimum Region Size. If, after the segmentation, a region is of size lower than this criterion, the region is merged with the \"nearest\" region (radiometrically).");
SetDefaultParameterInt("minsize",50);
SetMinimumParameterIntValue("minsize",0);
MandatoryOff("minsize");
AddParameter(ParameterType_Int,"nbtilesx","Number of Tiles (X-axis)");
SetParameterDescription("nbtilesx","Number of Tiles along the X-axis.");
SetDefaultParameterInt("nbtilesx",10);
SetMinimumParameterIntValue("nbtilesx",1);
MandatoryOff("nbtilesx");
AddParameter(ParameterType_Int,"nbtilesy","Number of Tiles (Y-axis)");
SetParameterDescription("nbtilesy","Number of Tiles along the Y-axis.");
SetDescription("Performs the vectorization of a segmentation.");
SetDocName("Vectorization");
SetDocLongDescription("This application performs the vectorization of a segmentation. It converts the labelled regions to polygons where the features are the radiometric means and variances.");
SetParameterDescription("out","The shapefile name. The shapefile is the vectorized version of the segmented image where the features of the polygones are the radiometric means and variances.");
AddParameter(ParameterType_Int,"nbtilesx","Number of Tiles (X-axis)");
SetParameterDescription("nbtilesx","Number of Tiles along the X-axis.");
SetDefaultParameterInt("nbtilesx",10);
SetMinimumParameterIntValue("nbtilesx",1);
MandatoryOff("nbtilesx");
AddParameter(ParameterType_Int,"nbtilesy","Number of Tiles (Y-axis)");
SetParameterDescription("nbtilesy","Number of Tiles along the Y-axis.");