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
f7eb0a8f
Commit
f7eb0a8f
authored
15 years ago
by
Jordi Inglada
Browse files
Options
Downloads
Patches
Plain Diff
DOC: small modifs on exmaple
parent
c469196d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx
+11
-14
11 additions, 14 deletions
Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx
with
11 additions
and
14 deletions
Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx
+
11
−
14
View file @
f7eb0a8f
...
...
@@ -27,14 +27,11 @@
// This example shows the basic approach to perform object based analysis on a image.
// The input image is firstly segmented using the \doxygen{otb}{MeanShiftImageFilter}
// Then each segmented region is converted to a Map of labeled objects.
// After the \doxygen{otb}{RadiometricAttributesLabelMapFilter}
computes
// After
wards
the \doxygen{otb}{RadiometricAttributesLabelMapFilter} computes
// radiometric attributes for each object.
// Images are supposed to be standard 4-bands image (B,G,R,NIR). The
// index of each channel can be set via the Set***ChannelIndex()
// accessors.
//
// This filter internally applies the
// StatisticsAttributesLabelMapFilter to the following features:
//
\doxygen{otb}{
StatisticsAttributesLabelMapFilter
}
to the following features:
// \begin{itemize}
// \item GEMI
// \item NDVI
...
...
@@ -45,7 +42,7 @@
// \item Intensity
// \item and original B, G, R and NIR channels
// \end{itemize}
// Here we use the
\doxygen{otb}{AttributesMapOpeningLabelMapFilter} to extract vegetated areas.
// Here we use the \doxygen{otb}{AttributesMapOpeningLabelMapFilter} to extract vegetated areas.
// Let's get to the source code explanation.
//
// Software Guide : EndLatex
...
...
@@ -131,7 +128,7 @@ int main(int argc, char * argv[])
// Software Guide : BeginLatex
//
// The \doxygen{otb}{MeanShiftImageFilter} type is instantiated using the image
s
// The \doxygen{otb}{MeanShiftImageFilter} type is instantiated using the image
// types.
//
// Software Guide : EndLatex
...
...
@@ -144,7 +141,7 @@ int main(int argc, char * argv[])
//
// The \doxygen{itk}{LabelImageToLabelMapFilter} type is instantiated using the output
// of the \doxygen{otb}{MeanShiftImageFilter}. This filter produces a labeled image
// where each segmented region ha
ve
a unique label.
// where each segmented region ha
s
a unique label.
//
// Software Guide : EndLatex
...
...
@@ -165,7 +162,7 @@ int main(int argc, char * argv[])
// Software Guide : BeginLatex
//
// Instantiate the \doxygen{otb}{RadiometricAttributesLabelMapFilter} to
// compute radiometric value
e
on each label object.
// compute radiometric value on each label object.
//
// Software Guide : EndLatex
...
...
@@ -178,9 +175,9 @@ int main(int argc, char * argv[])
// Software Guide : BeginLatex
//
// Then, we specify the red and the near infrared channels
// By default, images are supposed to be standard 4-band
s
// image (B,G,R,NIR). The index of each channel can
// be set via the Set***ChannelIndex() accessors.
// By default, images are supposed to be standard 4-band
// image
s
(B,G,R,NIR). The index of each channel can
// be set via the
\code{
Set***ChannelIndex()
}
accessors.
//
// Software Guide : EndLatex
...
...
@@ -192,7 +189,7 @@ int main(int argc, char * argv[])
// Software Guide : BeginLatex
//
// The \doxygen{otb}{AttributesMapOpeningLabelMapFilter} will p
roceed
the selection.
// The \doxygen{otb}{AttributesMapOpeningLabelMapFilter} will p
erform
the selection.
// There are three parameters. \code{AttributeName} specifies the radiometric attribute, \code{Lambda}
// controls the thresholding of the input and \code{ReverseOrdering} make this filter to remove the
// object with an attribute value greater than \code{Lambda} instead.
...
...
@@ -245,7 +242,7 @@ int main(int argc, char * argv[])
// \begin{figure} \center
// \includegraphics[width=0.44\textwidth]{qb_RoadExtract.eps}
// \includegraphics[width=0.44\textwidth]{OBIARadiometricAttribute1.eps}
// \itkcaption[Object based extraction based on ]{From left to right
: original image, vegetation mask resulting from processing.}
// \itkcaption[Object based extraction based on ]{From left to right: original image, vegetation mask resulting from processing.}
// \label{fig:RADIOMETRIC_LABEL_MAP_FILTER}
// \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