Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
def4a80c
Commit
def4a80c
authored
Jan 22, 2010
by
Manuel Grizonnet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TEST:change radiometric example
parent
407b0166
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx
Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx
+9
-8
No files found.
Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx
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
LabelImageFilter
<
LabelMapType
,
LabeledImageType
>
LabelMapToLabeled
ImageFilterType
;
typedef
itk
::
LabelMapTo
BinaryImageFilter
<
LabelMapType
,
LabeledImageType
>
LabelMapToBinary
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
::
MeanShift
ImageFilter
<
ImageType
,
ImageType
,
LabeledImageType
>
FilterType
;
typedef
otb
::
MeanShift
VectorImageFilter
<
VectorImageType
,
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
(
vreader
->
Get
Output
());
vr
->
SetInput
(
filter
->
GetClustered
Output
());
vr
->
SetOutputMinimum
(
minimum
);
vr
->
SetOutputMaximum
(
maximum
);
vr
->
SetClampThreshold
(
0.01
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment