Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Cresson Remi
LSGRM
Commits
cf9a43e2
Commit
cf9a43e2
authored
Aug 10, 2016
by
remicres
Browse files
ENH: begin to enrich module app command line interface
parent
7b5c96fc
Changes
1
Show whitespace changes
Inline
Side-by-side
app/otbLSGRM.cxx
View file @
cf9a43e2
...
...
@@ -54,8 +54,8 @@ private:
AddParameter
(
ParameterType_Float
,
"threshold"
,
"Threshold for the criterion"
);
AddParameter
(
ParameterType_Int
,
"niter"
,
"
N
umber of iterations"
);
SetDefaultParameterInt
(
"niter"
,
0
);
AddParameter
(
ParameterType_Int
,
"niter"
,
"
Maximum n
umber 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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment