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
1e0cae9c
Commit
1e0cae9c
authored
13 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
STYLE
parent
5c8d3de6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Applications/Utils/otbMultiResolutionPyramid.cxx
+11
-12
11 additions, 12 deletions
Applications/Utils/otbMultiResolutionPyramid.cxx
with
11 additions
and
12 deletions
Applications/Utils/otbMultiResolutionPyramid.cxx
+
11
−
12
View file @
1e0cae9c
...
@@ -73,10 +73,10 @@ private:
...
@@ -73,10 +73,10 @@ private:
void
DoCreateParameters
()
void
DoCreateParameters
()
{
{
AddParameter
(
ParameterType_InputImage
,
"in"
,
"Input Image"
);
AddParameter
(
ParameterType_InputImage
,
"in"
,
"Input Image"
);
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Output Image"
);
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Output Image"
);
SetParameterDescription
(
"out"
,
"will be used to get the prefix and the extension of the images to write"
);
SetParameterDescription
(
"out"
,
"will be used to get the prefix and the extension of the images to write"
);
AddParameter
(
ParameterType_Int
,
"level"
,
"Number Of Levels"
);
AddParameter
(
ParameterType_Int
,
"level"
,
"Number Of Levels"
);
SetParameterInt
(
"level"
,
1
);
SetParameterInt
(
"level"
,
1
);
...
@@ -88,14 +88,13 @@ private:
...
@@ -88,14 +88,13 @@ private:
AddParameter
(
ParameterType_Float
,
"vfactor"
,
"Subsampling factor"
);
AddParameter
(
ParameterType_Float
,
"vfactor"
,
"Subsampling factor"
);
SetParameterFloat
(
"vfactor"
,
0.6
);
SetParameterFloat
(
"vfactor"
,
0.6
);
// Boolean Fast scheme (remains)
// Boolean Fast scheme
// descriptor->AddOption("FastScheme","If used, this option allows
// AddParameter(ParameterType_Empty, "fast", "Use Fast Scheme");
// to speed-up computation by iteratively
// std::ostringstream desc;
// subsampling previous level of pyramid instead of processing the
// desc<<"If used, this option allows to speed-up computation by iteratively"
// full input
// <<" subsampling previous level of pyramid instead of processing the full input";
//image each time. Please note that this may result in extra blur
// SetParameterDescription("fast", desc.str());
// or extra aliasing.","fast",
// MandatoryOff("fast");
//0, false, ApplicationDescriptor::Integer);
}
}
void
DoUpdateParameters
()
void
DoUpdateParameters
()
...
@@ -171,7 +170,7 @@ private:
...
@@ -171,7 +170,7 @@ private:
// writer label
// writer label
std
::
ostringstream
osswriter
;
std
::
ostringstream
osswriter
;
osswriter
<<
"writer "
<<
currentLevel
;
osswriter
<<
"writer
(level
"
<<
currentLevel
<<
")"
;
// Set the filename of the current output image
// Set the filename of the current output image
paramDown
->
SetFileName
(
oss
.
str
());
paramDown
->
SetFileName
(
oss
.
str
());
...
...
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