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
a6dec472
Commit
a6dec472
authored
14 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
DOC: finally migrate the VisuExample on the SoftwareGuide to the new visualization framework
parent
a3e46c01
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Examples/CMakeLists.txt
+1
-1
1 addition, 1 deletion
Examples/CMakeLists.txt
Examples/Visualization/CMakeLists.txt
+1
-1
1 addition, 1 deletion
Examples/Visualization/CMakeLists.txt
Examples/Visualization/VisuExample1.cxx
+11
-10
11 additions, 10 deletions
Examples/Visualization/VisuExample1.cxx
with
13 additions
and
12 deletions
Examples/CMakeLists.txt
+
1
−
1
View file @
a6dec472
...
...
@@ -28,7 +28,7 @@ ADD_SUBDIRECTORY(OBIA)
IF
(
OTB_USE_VISU_GUI
)
ADD_SUBDIRECTORY
(
Visu
)
ADD_SUBDIRECTORY
(
Visu
alization
)
ENDIF
(
OTB_USE_VISU_GUI
)
IF
(
OTB_USE_PATENTED
)
...
...
This diff is collapsed.
Click to expand it.
Examples/Visu/CMakeLists.txt
→
Examples/Visu
alization
/CMakeLists.txt
+
1
−
1
View file @
a6dec472
...
...
@@ -2,6 +2,6 @@ PROJECT(VisuExamples)
INCLUDE_REGULAR_EXPRESSION
(
"^.*$"
)
ADD_EXECUTABLE
(
VisuExample1 VisuExample1.cxx
)
TARGET_LINK_LIBRARIES
(
VisuExample1 OTBVisu OTBGui OTBIO OTBCommon
${
OTB_VISU_GUI_LIBRARIES
}
)
TARGET_LINK_LIBRARIES
(
VisuExample1 OTBVisu
alization
OTBGui OTBIO OTBCommon
${
OTB_VISU_GUI_LIBRARIES
}
)
This diff is collapsed.
Click to expand it.
Examples/Visu/VisuExample1.cxx
→
Examples/Visu
alization
/VisuExample1.cxx
+
11
−
10
View file @
a6dec472
...
...
@@ -25,14 +25,14 @@
// Software Guide : BeginLatex
//
// This example shows the use of the \doxygen{otb}{ImageViewer}
// This example shows the use of the \doxygen{otb}{
Standard
ImageViewer}
// class for image visualization. As usual, we start by
// including the header file for the class.
//
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
#include
"otbImageViewer.h"
#include
"otb
Standard
ImageViewer.h"
// Software Guide : EndCodeSnippet
int
main
(
int
argc
,
char
*
argv
[])
...
...
@@ -41,6 +41,7 @@ int main(int argc, char * argv[])
if
(
argc
!=
2
)
{
std
::
cout
<<
" Usage : InputImage"
<<
std
::
endl
;
return
EXIT_FAILURE
;
}
const
char
*
inputFilename
=
argv
[
1
];
...
...
@@ -55,10 +56,10 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
int
PixelType
;
typedef
otb
::
VectorImage
<
PixelType
,
2
>
ImageType
;
typedef
otb
::
ImageFileReader
<
ImageType
>
ReaderType
;
typedef
otb
::
ImageViewer
<
Pixel
Type
>
ViewerType
;
typedef
int
PixelType
;
typedef
otb
::
VectorImage
<
PixelType
,
2
>
ImageType
;
typedef
otb
::
ImageFileReader
<
ImageType
>
ReaderType
;
typedef
otb
::
Standard
ImageViewer
<
Image
Type
>
ViewerType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
@@ -71,7 +72,7 @@ int main(int argc, char * argv[])
ViewerType
::
Pointer
lViewer
=
ViewerType
::
New
();
ReaderType
::
Pointer
lReader
=
ReaderType
::
New
();
lReader
->
SetFileName
(
inputFilename
);
lReader
->
Update
();
lReader
->
Update
OutputInformation
();
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
@@ -94,13 +95,13 @@ int main(int argc, char * argv[])
// Software Guide : BeginCodeSnippet
lViewer
->
SetImage
(
lReader
->
GetOutput
());
lViewer
->
Show
();
lViewer
->
Update
();
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
// The last step consists in starting the GUI event loop by calling
// the appropiate FLTK method.
// the approp
r
iate FLTK method.
//
// Software Guide : EndLatex
...
...
@@ -111,7 +112,7 @@ int main(int argc, char * argv[])
//
// \begin{figure}
// \center
// \includegraphics[width=.8\textwidth]{Visu
Grey
.eps}
// \includegraphics[width=.8\textwidth]{Visu
alizationAll
.eps}
// \itkcaption[Image visualization.]{Example of image visualization.}
// \label{fig:Visu1}
// \end{figure}
...
...
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