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
def4a80c
Commit
def4a80c
authored
15 years ago
by
Manuel Grizonnet
Browse files
Options
Downloads
Patches
Plain Diff
TEST:change radiometric example
parent
407b0166
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/RadiometricAttributesLabelMapFilterExample.cxx
+9
-8
9 additions, 8 deletions
Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx
with
9 additions
and
8 deletions
Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx
+
9
−
8
View file @
def4a80c
...
...
@@ -53,7 +53,7 @@
#include
"otbImageFileReader.h"
#include
"otbImageFileWriter.h"
#include
"otbMeanShiftImageFilter.h"
#include
"otbMeanShift
Vector
ImageFilter.h"
#include
"itkLabelImageToLabelMapFilter.h"
#include
"otbAttributesMapLabelObject.h"
#include
"itkLabelMap.h"
...
...
@@ -61,7 +61,7 @@
#include
"otbStatisticsAttributesLabelMapFilter.h"
#include
"otbRadiometricAttributesLabelMapFilter.h"
#include
"otbAttributesMapOpeningLabelMapFilter.h"
#include
"itkLabelMapTo
Label
ImageFilter.h"
#include
"itkLabelMapTo
Binary
ImageFilter.h"
#include
"otbMultiChannelExtractROI.h"
#include
"otbVectorRescaleIntensityImageFilter.h"
...
...
@@ -111,7 +111,7 @@ int main(int argc, char * argv[])
typedef
otb
::
StatisticsAttributesLabelMapFilter
<
LabelMapType
,
ImageType
>
StatisticsLabelMapFilterType
;
typedef
otb
::
RadiometricAttributesLabelMapFilter
<
LabelMapType
,
VectorImageType
>
RadiometricLabelMapFilterType
;
typedef
otb
::
AttributesMapOpeningLabelMapFilter
<
LabelMapType
>
OpeningLabelMapFilterType
;
typedef
itk
::
LabelMapTo
Label
ImageFilter
<
LabelMapType
,
LabeledImageType
>
LabelMapTo
Labeled
ImageFilterType
;
typedef
itk
::
LabelMapTo
Binary
ImageFilter
<
LabelMapType
,
LabeledImageType
>
LabelMapTo
Binary
ImageFilterType
;
ReaderType
::
Pointer
reader
=
ReaderType
::
New
();
...
...
@@ -122,6 +122,7 @@ int main(int argc, char * argv[])
VectorReaderType
::
Pointer
vreader
=
VectorReaderType
::
New
();
vreader
->
SetFileName
(
reffname
);
vreader
->
Update
();
// Software Guide : BeginLatex
//
// Firstly, segment the input image by using the Mean Shift algorithm (see \ref{sec:MeanShift} for deeper
...
...
@@ -130,7 +131,7 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
otb
::
MeanShiftImageFilter
<
ImageType
,
ImageType
,
LabeledImageType
>
FilterType
;
typedef
otb
::
MeanShift
Vector
ImageFilter
<
Vector
ImageType
,
Vector
ImageType
,
LabeledImageType
>
FilterType
;
FilterType
::
Pointer
filter
=
FilterType
::
New
();
filter
->
SetSpatialRadius
(
spatialRadius
);
filter
->
SetRangeRadius
(
rangeRadius
);
...
...
@@ -146,7 +147,7 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
filter
->
SetInput
(
reader
->
GetOutput
());
filter
->
SetInput
(
v
reader
->
GetOutput
());
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
@@ -226,8 +227,8 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
LabelMapTo
Labeled
ImageFilterType
::
Pointer
labelMap2LabeledImage
=
LabelMapTo
Labeled
ImageFilterType
::
New
();
LabelMapTo
Binary
ImageFilterType
::
Pointer
labelMap2LabeledImage
=
LabelMapTo
Binary
ImageFilterType
::
New
();
labelMap2LabeledImage
->
SetInput
(
opening
->
GetOutput
());
// Software Guide : EndCodeSnippet
...
...
@@ -253,7 +254,7 @@ int main(int argc, char * argv[])
maximum
.
Fill
(
255
);
VectorRescalerType
::
Pointer
vr
=
VectorRescalerType
::
New
();
vr
->
SetInput
(
vread
er
->
GetOutput
());
vr
->
SetInput
(
filt
er
->
Get
Clustered
Output
());
vr
->
SetOutputMinimum
(
minimum
);
vr
->
SetOutputMaximum
(
maximum
);
vr
->
SetClampThreshold
(
0.01
);
...
...
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