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
9437ebbb
Commit
9437ebbb
authored
19 years ago
by
Jordi Inglada
Browse files
Options
Downloads
Patches
Plain Diff
Mise a jour du chapitre Installation
parent
fbabbcf1
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
Examples/Installation/HelloWorld.cxx
+23
-11
23 additions, 11 deletions
Examples/Installation/HelloWorld.cxx
with
23 additions
and
11 deletions
Examples/Installation/HelloWorld.cxx
+
23
−
11
View file @
9437ebbb
// Software Guide : BeginLatex
//
Software Guide : BeginLatex
//
// Cet exemple permet d'afficher sur la sortie standard un petit message de 'Bonjour'
// The following code is an implementation of a small OTB
// program. It tests including header files and linking with OTB
// libraries.
//
// Software Guide : EndLatex
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
#include
"
otbBonjour
.h"
#include
"
itkImage
.h"
#include
<iostream>
#include
<iostream>
#include
<string>
int
main
()
{
otb
::
Bonjour
lBonjour
;
std
::
string
lString
=
lBonjour
.
getMessage
();
std
::
cout
<<
"Message : "
<<
lString
<<
std
::
endl
;
return
0
;
typedef
itk
::
Image
<
unsigned
short
,
2
>
ImageType
;
ImageType
::
Pointer
image
=
ImageType
::
New
();
std
::
cout
<<
"OTB Hello World !"
<<
std
::
endl
;
return
0
;
}
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
// Ce code permet d'afficher sur la sortie standard, le message enregistre dans la classe \code{otb::Bonjour}.
// This code instantiates an image whose pixels are represented with
// type \code{unsigned short}. The image is then constructed and assigned to a
// \doxygen{SmartPointer}. Although later in the text we will discuss
// \code{SmartPointer}'s in detail, for now think of it as a handle on an
// instance of an object (see section \ref{sec:SmartPointers} for more
// information). The \doxygen{Image} class will be described in
// Section~\ref{sec:ImageSection}.
//
// Software Guide : EndLatex
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