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
c469196d
Commit
c469196d
authored
15 years ago
by
Jordi Inglada
Browse files
Options
Downloads
Patches
Plain Diff
DOC: modifs to example
parent
31ebbb84
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/LabelMapToVectorData.cxx
+15
-9
15 additions, 9 deletions
Examples/OBIA/LabelMapToVectorData.cxx
with
15 additions
and
9 deletions
Examples/OBIA/LabelMapToVectorData.cxx
+
15
−
9
View file @
c469196d
...
...
@@ -30,13 +30,11 @@
//
// This class vectorizes a LabelObject to a VectorData.
//
// LabelMapToVectorDataFilter converts a LabelMap to a
// VectorData where all the pixels get the attribute value of the label object they belong.
// It uses the class otbLabelObjectToPolygonFunctor wich follows a finite states machine described in:
//
// "An algorithm for the rapid computation of boundaries of run-length
// encoded regions", Francis K. H. Queck, in Pattern Recognition 33
// (2000), p 1637-1649.
// The \doxygen{otb}{LabelMapToVectorDataFilter} converts an \doxygen{itk}{LabelMap} to an
// \doxygen{otb}{VectorData} where all the pixels get the attribute
// value of the label object they belong to.
// It uses the class \doxygen{otb}{LabelObjectToPolygonFunctor} wich
// follows a finite state machine described in \cite{Francis2000}.
//
// Only polygon conversion is available yet.
// Software Guide : EndLatex
...
...
@@ -50,8 +48,16 @@
#include
<iostream>
#include
"otbImage.h"
// Software Guide : BeginLatex
//
// These are the main header files which need to be included:
//
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
#include
"otbLabelMapToVectorDataFilter.h"
#include
"otbAttributesMapLabelObject.h"
// Software Guide : EndCodeSnippet
#include
"itkLabelImageToLabelMapFilter.h"
int
main
(
int
argc
,
char
*
argv
[])
...
...
@@ -137,7 +143,7 @@ int main(int argc, char * argv[])
// Software Guide : BeginLatex
//
// Then, the \doxygen{otb}{LabelMapToVectorDataFilter} is instantiated. This is
// the main filter which p
roceed
the vectorization.
// the main filter which p
erforms
the vectorization.
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
...
...
@@ -163,7 +169,7 @@ int main(int argc, char * argv[])
// Software Guide : BeginLatex
//
// The invocation of the \code{Update()} method on the writer triggers the
// execution of the pipeline. As usual
n
, it is recommended to place update calls in a
// execution of the pipeline. As usual, it is recommended to place update calls in a
// \code{try/catch} block in case errors occur and exceptions are thrown.
//
// 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