Commit cf9a43e2 authored by remicres's avatar remicres
Browse files

ENH: begin to enrich module app command line interface

Showing with 4 additions and 2 deletions
+4 -2
......@@ -54,8 +54,8 @@ private:
AddParameter(ParameterType_Float, "threshold", "Threshold for the criterion");
AddParameter(ParameterType_Int, "niter", "Number of iterations");
SetDefaultParameterInt("niter", 0);
AddParameter(ParameterType_Int, "niter", "Maximum number of iterations");
SetDefaultParameterInt("niter", 75);
MandatoryOff("niter");
AddParameter(ParameterType_Int, "speed", "Activate it to boost the segmentation speed");
......@@ -113,6 +113,7 @@ private:
}
else
{
// User
controller.SetTileWidth(GetParameterInt("tiling.user.sizex"));
controller.SetTileHeight(GetParameterInt("tiling.user.sizey"));
controller.SetNumberOfFirstIterations(GetParameterInt("tiling.user.nfirstiter"));
......@@ -134,6 +135,7 @@ private:
controller.SetSpecificParameters(params);
float thres = GetParameterFloat("threshold");
controller.SetThreshold(thres*thres);
controller.SetNumberOfIterations(GetParameterInt("niter"));
// Run the segmentation
controller.RunSegmentation();
......
Supports Markdown
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