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
d8b6e409
Commit
d8b6e409
authored
14 years ago
by
Manuel Grizonnet
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: rename image1 and image2 to reference image and measured image
parent
c46d5e18
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
Utils/otbCompareImages.cxx
+8
-8
8 additions, 8 deletions
Utils/otbCompareImages.cxx
with
8 additions
and
8 deletions
Utils/otbCompareImages.cxx
+
8
−
8
View file @
d8b6e409
...
...
@@ -31,10 +31,10 @@ int main(int argc, char* argv[])
ParserType
::
Pointer
parser
=
ParserType
::
New
();
parser
->
SetProgramDescription
(
"Estimator between 2 images"
);
parser
->
AddOption
(
"--
Input1"
,
"The first input
image"
,
"-
in1
"
,
1
,
true
);
parser
->
AddOption
(
"--
Input2"
,
"The first input
image"
,
"-
in2
"
,
1
,
true
);
parser
->
AddOption
(
"--NumBandImage
1
"
,
"
L
ayer number to compare in the
input
image
1
(between 1 and number of layers)"
,
"-layer
1
"
,
1
,
true
);
parser
->
AddOption
(
"--NumBandImage
2
"
,
"
L
ayer number to compare in the
input
image
2
(between 1 and number of layers)"
,
"-layer
2
"
,
1
,
true
);
parser
->
AddOption
(
"--
ReferenceImage"
,
"The reference
image"
,
"-
refIn
"
,
1
,
true
);
parser
->
AddOption
(
"--
MeasuredImage"
,
"The measured
image"
,
"-
meaIn
"
,
1
,
true
);
parser
->
AddOption
(
"--NumBand
Ref
Image"
,
"
The l
ayer number to compare in the
reference
image (between 1 and number of layers)"
,
"-layer
Ref
"
,
1
,
true
);
parser
->
AddOption
(
"--NumBand
Measured
Image"
,
"
The l
ayer number to compare in the
measured
image (between 1 and number of layers)"
,
"-layer
Mea
"
,
1
,
true
);
parser
->
AddOption
(
"--StartX"
,
"first point in x-axis "
,
"-x0"
,
1
,
false
);
parser
->
AddOption
(
"--StartY"
,
"first point in y-axis "
,
"-y0"
,
1
,
false
);
parser
->
AddOption
(
"--SizeX"
,
"size in x-axis "
,
"-Nx"
,
1
,
false
);
...
...
@@ -70,15 +70,15 @@ int main(int argc, char* argv[])
//typedef otb::StreamingStatisticsImageFilter<ExtractROIMonoFilterType::OutputImageType> StreamingCompareImageFilterType;
// Read input images information
ReaderType
::
Pointer
reader1
=
ReaderType
::
New
();
reader1
->
SetFileName
(
parseResult
->
GetParameterString
(
"--
Input1
"
));
reader1
->
SetFileName
(
parseResult
->
GetParameterString
(
"--
ReferenceImage
"
));
reader1
->
GenerateOutputInformation
();
ReaderType
::
Pointer
reader2
=
ReaderType
::
New
();
reader2
->
SetFileName
(
parseResult
->
GetParameterString
(
"--
Input2
"
));
reader2
->
SetFileName
(
parseResult
->
GetParameterString
(
"--
MeasuredImage
"
));
reader2
->
GenerateOutputInformation
();
unsigned
int
layer1
=
parseResult
->
GetParameterUInt
(
"--NumBandImage
1
"
);
unsigned
int
layer2
=
parseResult
->
GetParameterUInt
(
"--NumBandImage
2
"
);
unsigned
int
layer1
=
parseResult
->
GetParameterUInt
(
"--NumBand
Ref
Image"
);
unsigned
int
layer2
=
parseResult
->
GetParameterUInt
(
"--NumBand
Measured
Image"
);
...
...
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