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
Antoine Belvire
otb
Commits
5d8556ba
Commit
5d8556ba
authored
16 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Viewer tutorial now use the new visu
parent
330888a0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Examples/Tutorials/CMakeLists.txt
+13
-13
13 additions, 13 deletions
Examples/Tutorials/CMakeLists.txt
Examples/Tutorials/SimpleViewer.cxx
+8
-8
8 additions, 8 deletions
Examples/Tutorials/SimpleViewer.cxx
with
21 additions
and
21 deletions
Examples/Tutorials/CMakeLists.txt
+
13
−
13
View file @
5d8556ba
...
...
@@ -21,7 +21,7 @@ TARGET_LINK_LIBRARIES(SmarterFilteringPipeline OTBCommon OTBIO)
IF
(
OTB_USE_VISU_GUI
)
ADD_EXECUTABLE
(
SimpleViewer SimpleViewer.cxx
)
TARGET_LINK_LIBRARIES
(
SimpleViewer OTBCommon OTBIO OTBGui OTBVisu
${
OTB_VISU_GUI_LIBRARIES
}
)
TARGET_LINK_LIBRARIES
(
SimpleViewer OTBCommon OTBIO OTBGui OTBVisu
alization
${
OTB_VISU_GUI_LIBRARIES
}
)
ENDIF
(
OTB_USE_VISU_GUI
)
ADD_EXECUTABLE
(
OrthoFusion OrthoFusion.cxx
)
...
...
@@ -50,7 +50,7 @@ ADD_TEST( TutorialsPipelineTest ${EXE_TESTS}
${
INPUTDATA
}
/QB_Suburb.png
${
TEMP
}
/TutorialsPipelineOutput.png
)
ADD_TEST
(
TutorialsFilteringPipelineTest
${
EXE_TESTS
}
--compare-image
${
TOL
}
${
BASELINE
}
/TutorialsFilteringPipelineOutput.png
${
TEMP
}
/TutorialsFilteringPipelineOutput.png
...
...
@@ -58,7 +58,7 @@ ADD_TEST( TutorialsFilteringPipelineTest ${EXE_TESTS}
${
INPUTDATA
}
/QB_Suburb.png
${
TEMP
}
/TutorialsFilteringPipelineOutput.png
)
ADD_TEST
(
TutorialsScalingPipelineTest
${
EXE_TESTS
}
--compare-image
${
TOL
}
${
BASELINE
}
/TutorialsScalingPipelineOutput.png
${
TEMP
}
/TutorialsScalingPipelineOutput.png
...
...
@@ -66,7 +66,7 @@ ADD_TEST( TutorialsScalingPipelineTest ${EXE_TESTS}
${
INPUTDATA
}
/QB_Suburb.png
${
TEMP
}
/TutorialsScalingPipelineOutput.png
)
ADD_TEST
(
TutorialsMultispectralTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
2
${
BASELINE
}
/MultispectralOutput1.tif
${
TEMP
}
/MultispectralOutput1.tif
...
...
@@ -76,8 +76,8 @@ ADD_TEST( TutorialsMultispectralTest ${EXE_TESTS}
${
INPUTDATA
}
/qb_RoadExtract.tif
${
TEMP
}
/MultispectralOutput1.tif
${
TEMP
}
/MultispectralOutput2.tif
)
)
ADD_TEST
(
TutorialsSmarterFilteringPipelineTest
${
EXE_TESTS
}
--compare-image
${
TOL
}
${
BASELINE
}
/TutorialsSmarterFilteringPipelineOutput.png
...
...
@@ -85,8 +85,8 @@ ADD_TEST( TutorialsSmarterFilteringPipelineTest ${EXE_TESTS}
TutorialsSmarterFilteringPipelineTest
-in
${
INPUTDATA
}
/QB_Suburb.png
-out
${
TEMP
}
/TutorialsSmarterFilteringPipelineOutput.png
-d 1.5
-i 2
-d 1.5
-i 2
-a 0.1
)
...
...
@@ -100,11 +100,11 @@ ADD_TEST( TutorialsOrthoFusionTest ${EXE_TESTS}
${
TEMP
}
/TutorialsOrthoFusionOutput.tif
31
N
375000
4828100
500
500
0.6
375000
4828100
500
500
0.6
-0.6
)
ENDIF
(
OTB_DATA_USE_LARGEINPUT
)
...
...
This diff is collapsed.
Click to expand it.
Examples/Tutorials/SimpleViewer.cxx
+
8
−
8
View file @
5d8556ba
...
...
@@ -18,7 +18,7 @@
// Software Guide : BeginLatex
//
// Now, we are going to illustrate the use of the \doxygen{otb}{ImageViewer}
// Now, we are going to illustrate the use of the \doxygen{otb}{
Standard
ImageViewer}
// to display an image or the result of an algorithm without saving the image.
//
// We include the required header including the header
...
...
@@ -31,7 +31,7 @@
#include
"otbImage.h"
#include
"otbImageFileReader.h"
#include
"itkGradientMagnitudeImageFilter.h"
#include
"otbImageViewer.h"
#include
"otb
Standard
ImageViewer.h"
int
main
(
int
argc
,
char
*
argv
[]
)
{
...
...
@@ -69,14 +69,14 @@ int main( int argc, char * argv[] )
// Software Guide : BeginLatex
//
//
Unlike most OTB filters, t
he
\doxygen{otb}{ImageViewer} is
//
templated over the input pixel type in
ste
ad
of
the image
//
type. This will allow to use it w
it
h
s
calar and vector images
.
//
T
he \doxygen{otb}{
Standard
ImageViewer} is
the new, highly versatile
//
component to display images in OTB. There is a sy
ste
m
of
plugins to
//
fully customize its behavior. But we'll keep
it s
imple for now
.
//
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
otb
::
ImageViewer
<
Pixel
Type
>
ViewerType
;
typedef
otb
::
Standard
ImageViewer
<
Image
Type
>
ViewerType
;
ViewerType
::
Pointer
viewer
=
ViewerType
::
New
();
// Software Guide : EndCodeSnippet
...
...
@@ -108,12 +108,12 @@ int main( int argc, char * argv[] )
// Software Guide : BeginLatex
//
// We trigger the pipeline execution and the image display
// with the \code{
Show
()} method of the viewer.
// with the \code{
Update
()} method of the viewer.
//
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
viewer
->
Show
();
viewer
->
Update
();
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
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