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
Main Repositories
otb
Commits
cf7249be
Commit
cf7249be
authored
15 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Software guide typos + figure
parent
779c9818
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Examples/OBIA/ImageToLabelToImage.cxx
+16
-2
16 additions, 2 deletions
Examples/OBIA/ImageToLabelToImage.cxx
Examples/OBIA/ShapeAttributeComputation.cxx
+9
-8
9 additions, 8 deletions
Examples/OBIA/ShapeAttributeComputation.cxx
with
25 additions
and
10 deletions
Examples/OBIA/ImageToLabelToImage.cxx
+
16
−
2
View file @
cf7249be
...
@@ -124,7 +124,7 @@ int main(int argc, char * argv[])
...
@@ -124,7 +124,7 @@ int main(int argc, char * argv[])
// Software Guide : BeginLatex
// Software Guide : BeginLatex
//
//
// The output can be passed to a writer.The invocation
// The output can be passed to a writer.
The invocation
// of the \code{Update()} method on the writer triggers the
// of the \code{Update()} method on the writer triggers the
// execution of the pipeline.
// execution of the pipeline.
//
//
...
@@ -158,6 +158,20 @@ int main(int argc, char * argv[])
...
@@ -158,6 +158,20 @@ int main(int argc, char * argv[])
prettyWriter
->
SetInput
(
rescaler
->
GetOutput
()
);
prettyWriter
->
SetInput
(
rescaler
->
GetOutput
()
);
prettyWriter
->
Update
();
prettyWriter
->
Update
();
// Software Guide : BeginLatex
//
// Figure~\ref{fig:ImageToLabel} shows effect of transforming an
// image into a label object map and back to an image
//
// \begin{figure}
// \center
// \includegraphics[width=0.44\textwidth]{OBIAI2L2IInputPretty.eps}
// \includegraphics[width=0.44\textwidth]{OBIAI2L2IOutputPretty.eps}
// \itkcaption[Image to Label Object Map]{transforming an
// image (left) into a label object map and back to an image (right).}
// \label{fig:ImageToLabel}
// \end{figure}
// Software Guide : EndLatex
return
0
;
return
0
;
}
}
This diff is collapsed.
Click to expand it.
Examples/OBIA/ShapeAttributeComputation.cxx
+
9
−
8
View file @
cf7249be
...
@@ -24,8 +24,9 @@
...
@@ -24,8 +24,9 @@
// Software Guide : BeginLatex
// Software Guide : BeginLatex
//
//
// This basic example shows how compute shape attributes at the object level.
// This basic example shows how compute shape attributes at the object level.
// The input image is firstly translate in a set of regions (of \doxygen{itk}{ShapeLabelObject})
// The input image is firstly translated in a set of regions (of
// and some attributes values of each object are then save to an ASCII file.
// \doxygen{itk}{ShapeLabelObject}), some attributes values of each
// object are computed and then save to an ASCII file.
//
//
// Software Guide : EndLatex
// Software Guide : EndLatex
...
@@ -57,13 +58,14 @@ int main(int argc, char * argv[])
...
@@ -57,13 +58,14 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
// Software Guide : BeginCodeSnippet
const
int
dim
=
2
;
const
int
dim
=
2
;
typedef
unsigned
long
PixelType
;
typedef
unsigned
long
PixelType
;
typedef
itk
::
Image
<
PixelType
,
dim
>
ImageType
;
typedef
itk
::
Image
<
PixelType
,
dim
>
ImageType
;
typedef
unsigned
long
LabelType
;
typedef
unsigned
long
LabelType
;
typedef
itk
::
ShapeLabelObject
<
LabelType
,
dim
>
LabelObjectType
;
typedef
itk
::
ShapeLabelObject
<
LabelType
,
dim
>
LabelObjectType
;
typedef
itk
::
LabelMap
<
LabelObjectType
>
LabelMapType
;
typedef
itk
::
LabelMap
<
LabelObjectType
>
LabelMapType
;
typedef
itk
::
LabelImageToLabelMapFilter
<
ImageType
,
LabelMapType
>
ConverterType
;
typedef
itk
::
LabelImageToLabelMapFilter
<
ImageType
,
LabelMapType
>
ConverterType
;
// Software Guide : EndCodeSnippet
// Software Guide : EndCodeSnippet
...
@@ -152,5 +154,4 @@ int main(int argc, char * argv[])
...
@@ -152,5 +154,4 @@ int main(int argc, char * argv[])
// Software Guide : EndCodeSnippet
// Software Guide : EndCodeSnippet
return
EXIT_SUCCESS
;
return
EXIT_SUCCESS
;
}
}
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