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
Container Registry
Model registry
Operate
Environments
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
Cédric Traizet
otb
Commits
657743e9
Commit
657743e9
authored
16 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Adding help message for NCC example
parent
8c963501
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Examples/DisparityMap/NCCRegistrationFilterExample.cxx
+15
-6
15 additions, 6 deletions
Examples/DisparityMap/NCCRegistrationFilterExample.cxx
with
15 additions
and
6 deletions
Examples/DisparityMap/NCCRegistrationFilterExample.cxx
+
15
−
6
View file @
657743e9
...
...
@@ -26,7 +26,7 @@
// Software Guide : BeginCommandLineArgs
// INPUTS: {fixed.tif}, {moving.tif}
// OUTPUTS: {deformationFieldOutput2.png}
// OUTPUTS: {deformationFieldOutput2.png}
{resampledOutput2.png}
// 5 1.0 2
// Software Guide : EndCommandLineArgs
...
...
@@ -57,6 +57,15 @@
int
main
(
int
argc
,
char
**
argv
)
{
if
(
argc
!=
8
)
{
std
::
cerr
<<
"Usage: "
<<
argv
[
0
];
std
::
cerr
<<
"fixedFileName movingFileName fieldOutName imageOutName "
;
std
::
cerr
<<
"explorationSize bluringSigma nbIterations "
;
return
EXIT_FAILURE
;
}
const
unsigned
int
ImageDimension
=
2
;
typedef
double
PixelType
;
...
...
@@ -104,7 +113,7 @@ int main(int argc, char** argv )
FixedBlurType
::
Pointer
fBlur
=
FixedBlurType
::
New
();
fBlur
->
SetInput
(
fReader
->
GetOutput
()
);
fBlur
->
SetSigma
(
atof
(
argv
[
5
])
);
fBlur
->
SetSigma
(
atof
(
argv
[
6
])
);
typedef
itk
::
RecursiveGaussianImageFilter
<
MovingImageType
,
...
...
@@ -112,7 +121,7 @@ int main(int argc, char** argv )
MovingBlurType
::
Pointer
mBlur
=
MovingBlurType
::
New
();
mBlur
->
SetInput
(
mReader
->
GetOutput
()
);
mBlur
->
SetSigma
(
atof
(
argv
[
5
])
);
mBlur
->
SetSigma
(
atof
(
argv
[
6
])
);
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
@@ -147,8 +156,8 @@ int main(int argc, char** argv )
RadiusType
radius
;
radius
[
0
]
=
atoi
(
argv
[
4
]);
radius
[
1
]
=
atoi
(
argv
[
4
]);
radius
[
0
]
=
atoi
(
argv
[
5
]);
radius
[
1
]
=
atoi
(
argv
[
5
]);
registrator
->
SetNCCRadius
(
radius
);
// Software Guide : EndCodeSnippet
...
...
@@ -162,7 +171,7 @@ int main(int argc, char** argv )
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
registrator
->
SetNumberOfIterations
(
atoi
(
argv
[
6
])
);
registrator
->
SetNumberOfIterations
(
atoi
(
argv
[
7
])
);
// Software Guide : EndCodeSnippet
// registrator->GetDeformationField();
...
...
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