Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
ca078dc0
Commit
ca078dc0
authored
13 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
ENH: add a empty parameter to the application
parent
e7284bbe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Applications/Util/otbMultiResolutionPyramid.cxx
+11
-8
11 additions, 8 deletions
Applications/Util/otbMultiResolutionPyramid.cxx
with
11 additions
and
8 deletions
Applications/Util/otbMultiResolutionPyramid.cxx
+
11
−
8
View file @
ca078dc0
...
...
@@ -89,12 +89,12 @@ private:
SetParameterFloat
(
"vfactor"
,
0.6
);
// Boolean Fast scheme
//
AddParameter(ParameterType_Empty, "fast", "Use Fast Scheme");
//
std::ostringstream desc;
//
desc<<"If used, this option allows to speed-up computation by iteratively"
//
<<" subsampling previous level of pyramid instead of processing the full input";
//
SetParameterDescription("fast", desc.str());
//
MandatoryOff("fast");
AddParameter
(
ParameterType_Empty
,
"fast"
,
"Use Fast Scheme"
);
std
::
ostringstream
desc
;
desc
<<
"If used, this option allows to speed-up computation by iteratively"
<<
" subsampling previous level of pyramid instead of processing the full input"
;
SetParameterDescription
(
"fast"
,
desc
.
str
());
MandatoryOff
(
"fast"
);
}
void
DoUpdateParameters
()
...
...
@@ -115,8 +115,7 @@ private:
unsigned
int
shrinkFactor
=
GetParameterInt
(
"sfactor"
);
double
varianceFactor
=
GetParameterFloat
(
"vfactor"
);
//bool fastScheme = parseResult->IsOptionPresent("FastScheme");
bool
fastScheme
=
false
;
bool
fastScheme
=
IsParameterEnabled
(
"fast"
);
// Get the input image
FloatVectorImageType
::
Pointer
inImage
=
GetParameterImage
(
"in"
);
...
...
@@ -159,6 +158,10 @@ private:
{
currentFactor
*=
shrinkFactor
;
}
else
{
std
::
cout
<<
"fast scheme enabled : not implemented for the moment "
<<
std
::
endl
;
}
// Get the Output Parameter to change the current image filename
Parameter
*
param
=
GetParameterByKey
(
"out"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment