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
ec03b4f0
Commit
ec03b4f0
authored
Jan 27, 2012
by
Manuel Grizonnet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH:update example to avoid scramble output in SG
parent
d85fb29b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
Examples/OBIA/CMakeLists.txt
Examples/OBIA/CMakeLists.txt
+3
-3
Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx
Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx
+5
-3
No files found.
Examples/OBIA/CMakeLists.txt
View file @
ec03b4f0
...
...
@@ -53,11 +53,11 @@ ADD_TEST(trTeOBIAShapeAttributeComputationTest ${EXE_TESTS}
)
ADD_TEST
(
trTeOBIARadiometricAttributesLabelMapFilterTest
${
EXE_TESTS
}
--compare-image
${
TOL
}
${
BASELINE
}
/OBIARadiometricAttributes.
tif
${
TEMP
}
/OBIARadiometricAttributes.
tif
--compare-image
${
TOL
}
${
BASELINE
}
/OBIARadiometricAttributes.
png
${
TEMP
}
/OBIARadiometricAttributes.
png
RadiometricAttributesLabelMapFilterExample
${
INPUTDATA
}
/qb_RoadExtract.tif
${
TEMP
}
/OBIARadiometricAttributes.
tif
${
TEMP
}
/OBIARadiometricAttributes.
png
${
TEMP
}
/qb_RoadExtract_Radiometry_pretty.png
STATS::Band1::Mean
0
...
...
Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx
View file @
ec03b4f0
...
...
@@ -18,7 +18,7 @@
// Software Guide : BeginCommandLineArgs
// INPUTS: {qb_RoadExtract.tif}
// OUTPUTS: {OBIARadiometricAttribute1.
tif
}, {qb_ExtractRoad_Radiometry_pretty.jpg}
// OUTPUTS: {OBIARadiometricAttribute1.
png
}, {qb_ExtractRoad_Radiometry_pretty.jpg}
// STATS::Band1::Mean 0 0.5 16 16 50 1.0
// Software Guide : EndCommandLineArgs
...
...
@@ -86,15 +86,17 @@ int main(int argc, char * argv[])
// Labeled image type
typedef
unsigned
short
LabelType
;
typedef
unsigned
char
MaskPixelType
;
typedef
double
PixelType
;
typedef
otb
::
Image
<
LabelType
,
Dimension
>
LabeledImageType
;
typedef
otb
::
Image
<
MaskPixelType
,
Dimension
>
MaskImageType
;
typedef
otb
::
Image
<
PixelType
,
Dimension
>
ImageType
;
typedef
otb
::
VectorImage
<
PixelType
,
Dimension
>
VectorImageType
;
typedef
otb
::
VectorImage
<
unsigned
char
,
Dimension
>
OutputVectorImageType
;
typedef
otb
::
ImageFileReader
<
LabeledImageType
>
LabeledReaderType
;
typedef
otb
::
ImageFileReader
<
ImageType
>
ReaderType
;
typedef
otb
::
ImageFileReader
<
VectorImageType
>
VectorReaderType
;
typedef
otb
::
ImageFileWriter
<
LabeledImageType
>
WriterType
;
typedef
otb
::
ImageFileWriter
<
MaskImageType
>
WriterType
;
typedef
otb
::
ImageFileWriter
<
OutputVectorImageType
>
VectorWriterType
;
typedef
otb
::
VectorRescaleIntensityImageFilter
<
VectorImageType
,
OutputVectorImageType
>
VectorRescalerType
;
...
...
@@ -120,7 +122,7 @@ int main(int argc, char * argv[])
typedef
otb
::
AttributesMapOpeningLabelMapFilter
<
LabelMapType
>
OpeningLabelMapFilterType
;
typedef
itk
::
LabelMapToBinaryImageFilter
<
LabelMapType
,
Labeled
ImageType
>
Mask
ImageType
>
LabelMapToBinaryImageFilterType
;
typedef
otb
::
MultiChannelRAndNIRIndexImageFilter
<
VectorImageType
,
ImageType
>
NDVIImageFilterType
;
...
...
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