Skip to content
Snippets Groups Projects
Commit 44863160 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH: update docexample to the new framework for Segmentation appli

parent b61e0697
Branches
Tags
No related merge requests found
......@@ -73,9 +73,7 @@ private:
SetDocLimitations("None");
SetDocAuthors("OTB-Team");
SetDocSeeAlso(" ");
SetDocCLExample("otbApplicationLauncherCommandLine ConnectedComponentSegmentation ${OTB-BIN}/bin "
"--in ${OTB-DATA}/Input/ROI_QB_MUL_4.tif --mask \"((b1>80)*intensity>95)\" --expr \"distance<10\" "
"--minsize 15 --obia \"SHAPE_Elongation>8\" --out ./result.shp");
AddDocTag(Tags::Analysis);
AddDocTag(Tags::Segmentation);
}
......@@ -116,6 +114,14 @@ private:
SetParameterDescription("dem", "DEM directory (used to reproject output in WGS84 if input image is in sensor model geometry)");
MandatoryOff("dem");
DisableParameter("dem");
// Doc example parameter settings
SetDocExampleParameterValue("in", "ROI_QB_MUL_4.tif");
SetDocExampleParameterValue("mask", "\"((b1>80)*intensity>95)\"");
SetDocExampleParameterValue("expr", "\"distance<10\"");
SetDocExampleParameterValue("minsize", "15");
SetDocExampleParameterValue("obia", "\"SHAPE_Elongation>8\"");
SetDocExampleParameterValue("out", "ConnectedComponentSegmentation.shp");
}
void DoUpdateParameters()
......
......@@ -53,10 +53,7 @@ private:
SetDocLimitations("None");
SetDocAuthors("OTB-Team");
SetDocSeeAlso(" ");
SetDocCLExample("otbApplicationLauncherCommandLine MeanShiftClustering ${OTB-BIN}/bin "
"--in ${OTB-Data}/Input/qb_RoadExtract2sub200x200.tif --cout MeanShift_ClusteredOutput.tif"
"--fout MeanShift_FilterOutput.tif --lout MeanShift_LabeledClusteredOutput.tif"
"--cbout MeanShift_ClusterBoundariesOutput.tif ---spatialr 16 --ranger 16 --minsize 10 --scale 1.0 ");
AddDocTag(Tags::Segmentation);
}
......@@ -88,6 +85,18 @@ private:
SetDefaultParameterFloat("ranger", 15.0);
SetDefaultParameterInt("minsize", 100);
SetDefaultParameterFloat("scale", 100000.);
// Doc example parameter settings
SetDocExampleParameterValue("in", "qb_RoadExtract2sub200x200.tif");
SetDocExampleParameterValue("cout", "MeanShift_ClusteredOutput.tif");
SetDocExampleParameterValue("fout", "MeanShift_FilterOutput.tif");
SetDocExampleParameterValue("lout", "MeanShift_LabeledClusteredOutput.tif uint32");
SetDocExampleParameterValue("cbout", "MeanShift_ClusterBoundariesOutput.tif uint8");
SetDocExampleParameterValue("spatialr", "16");
SetDocExampleParameterValue("ranger", "16");
SetDocExampleParameterValue("minsize", "10");
SetDocExampleParameterValue("scale", "1.0");
}
void DoUpdateParameters()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment