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
50892219
Commit
50892219
authored
15 years ago
by
Jordi Inglada
Browse files
Options
Downloads
Patches
Plain Diff
DOC: small modifs to example
parent
f7eb0a8f
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/OBIA/ShapeAttributeComputation.cxx
+10
-10
10 additions, 10 deletions
Examples/OBIA/ShapeAttributeComputation.cxx
with
10 additions
and
10 deletions
Examples/OBIA/ShapeAttributeComputation.cxx
+
10
−
10
View file @
50892219
...
...
@@ -24,9 +24,9 @@
// Software Guide : BeginLatex
//
// This basic example shows how compute shape attributes at the object level.
// The input image is firstly
transla
ted in a set of regions (
of
// \doxygen{itk}{ShapeLabelObject}), some attribute
s
values of each
// object are computed and then save to an ASCII file.
// The input image is firstly
conver
ted in
to
a set of regions (
// \doxygen{itk}{ShapeLabelObject}), some attribute values of each
// object are computed and then save
d
to an ASCII file.
//
// Software Guide : EndLatex
...
...
@@ -53,7 +53,7 @@ int main(int argc, char * argv[])
// Software Guide : BeginLatex
//
// The image types are defined using pixel types and
// dimension. The input image is defined as an \doxygen{otb}{Image}.
// dimension
s
. The input image is defined as an \doxygen{otb}{Image}.
//
// Software Guide : EndLatex
...
...
@@ -85,8 +85,8 @@ int main(int argc, char * argv[])
// Software Guide : BeginLatex
//
// Here the \doxygen{itk}{ShapeLabelObject} type
// is chosen in order to read some attribute related to the shape
// of the objects
(
by opposition to the content of the object, with
// is chosen in order to read some attribute
s
related to the shape
// of the objects
,
by opposition to the content of the object, with
// the \doxygen{itk}{StatisticsLabelObject}.
//
// Software Guide : EndLatex
...
...
@@ -130,11 +130,11 @@ int main(int argc, char * argv[])
// Software Guide : BeginLatex
//
// Then, we can read the attribute values we're interested in. The \doxygen{itk}{BinaryImageToShapeLabelMapFilter}
// produce consecutive labels, so we can use a for loop and GetLabelObject() method to retrieve
// the label objects. If the labels are not consecutive, the GetNthLabelObject() method must be
// use instead of GetLabelObject(), or an iterator on the label
// produce
s
consecutive labels, so we can use a for loop and
\code{
GetLabelObject()
}
method to retrieve
// the label objects. If the labels are not consecutive, the
\code{
GetNthLabelObject()
}
method must be
// use instead of
\code{
GetLabelObject()
}
, or an iterator on the label
// object container of the label map.
// In this example, we
p
ri
n
t 2 shape attributes of each object to a text file (the size and the centroid coordinates).
// In this example, we
w
rit
e
2 shape attributes of each object to a text file (the size and the centroid coordinates).
//
// 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