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
d22c61e8
Commit
d22c61e8
authored
16 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
ENH: removing Update() from NCCRegistrationFilterExample to use streaming
parent
de7a074e
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
+6
-7
6 additions, 7 deletions
Examples/DisparityMap/NCCRegistrationFilterExample.cxx
with
6 additions
and
7 deletions
Examples/DisparityMap/NCCRegistrationFilterExample.cxx
+
6
−
7
View file @
d22c61e8
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
// Software Guide : EndLatex
// Software Guide : EndLatex
#include
"otbImage.h"
#include
"otbImage.h"
#include
"otbImageFileWriter.h"
#include
"otb
Streaming
ImageFileWriter.h"
#include
"otbImageFileReader.h"
#include
"otbImageFileReader.h"
#include
"otbCommandLineArgumentParser.h"
#include
"otbCommandLineArgumentParser.h"
...
@@ -184,13 +184,12 @@ int main(int argc, char** argv )
...
@@ -184,13 +184,12 @@ int main(int argc, char** argv )
// Software Guide : BeginLatex
// Software Guide : BeginLatex
//
//
// \end{itemize}
// \end{itemize}
// Then we can trigger the \code{Update()} method on the NCCRegistrationFilter:
// The execution of the NCCRegistrationFilter will be triggered by the \code{Update()}
// call on the writer at the end of the pipeline. Make sure to use a
// \doxygen{otb}{StreamingImageFileWriter} if you want to benefit from the streaming features.
//
//
// Software Guide : EndLatex
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
registrator
->
Update
();
// Software Guide : EndCodeSnippet
typedef
otb
::
ImageOfVectorsToMonoChannelExtractROI
<
DeformationFieldType
,
MovingImageType
>
ChannelExtractionFilterType
;
typedef
otb
::
ImageOfVectorsToMonoChannelExtractROI
<
DeformationFieldType
,
MovingImageType
>
ChannelExtractionFilterType
;
...
@@ -206,7 +205,7 @@ int main(int argc, char** argv )
...
@@ -206,7 +205,7 @@ int main(int argc, char** argv )
fieldRescaler
->
SetOutputMaximum
(
255
);
fieldRescaler
->
SetOutputMaximum
(
255
);
fieldRescaler
->
SetOutputMinimum
(
0
);
fieldRescaler
->
SetOutputMinimum
(
0
);
typedef
otb
::
ImageFileWriter
<
OutputImageType
>
DFWriterType
;
typedef
otb
::
Streaming
ImageFileWriter
<
OutputImageType
>
DFWriterType
;
DFWriterType
::
Pointer
dfWriter
=
DFWriterType
::
New
();
DFWriterType
::
Pointer
dfWriter
=
DFWriterType
::
New
();
dfWriter
->
SetFileName
(
argv
[
3
]);
dfWriter
->
SetFileName
(
argv
[
3
]);
...
@@ -229,7 +228,7 @@ int main(int argc, char** argv )
...
@@ -229,7 +228,7 @@ int main(int argc, char** argv )
CastFilterType
::
Pointer
caster
=
CastFilterType
::
New
();
CastFilterType
::
Pointer
caster
=
CastFilterType
::
New
();
caster
->
SetInput
(
warper
->
GetOutput
()
);
caster
->
SetInput
(
warper
->
GetOutput
()
);
typedef
otb
::
ImageFileWriter
<
OutputImageType
>
WriterType
;
typedef
otb
::
Streaming
ImageFileWriter
<
OutputImageType
>
WriterType
;
WriterType
::
Pointer
writer
=
WriterType
::
New
();
WriterType
::
Pointer
writer
=
WriterType
::
New
();
writer
->
SetFileName
(
argv
[
4
]);
writer
->
SetFileName
(
argv
[
4
]);
...
...
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