Commit cf9a43e2 authored by remicres's avatar remicres
Browse files

ENH: begin to enrich module app command line interface

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