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
bc9106ae
Commit
bc9106ae
authored
Apr 24, 2017
by
Guillaume Pasero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: Mantis-1389: use uint32 for label type
parent
5dc0ec76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Modules/Applications/AppImageUtils/app/otbColorMapping.cxx
Modules/Applications/AppImageUtils/app/otbColorMapping.cxx
+5
-4
Modules/Applications/AppImageUtils/otb-module.cmake
Modules/Applications/AppImageUtils/otb-module.cmake
+1
-0
No files found.
Modules/Applications/AppImageUtils/app/otbColorMapping.cxx
View file @
bc9106ae
...
...
@@ -46,6 +46,7 @@
#include "otbStreamingStatisticsMapFromLabelImageFilter.h"
#include "otbMacro.h"
#include "otbStringUtils.h"
namespace
otb
{
...
...
@@ -178,14 +179,14 @@ public:
itkTypeMacro
(
ColorMapping
,
otb
::
Application
);
typedef
FloatImageType
::
PixelType
PixelType
;
typedef
UInt
16
ImageType
LabelImageType
;
typedef
UInt
32
ImageType
LabelImageType
;
typedef
LabelImageType
::
PixelType
LabelType
;
typedef
UInt8VectorImageType
VectorImageType
;
typedef
VectorImageType
::
PixelType
VectorPixelType
;
typedef
UInt8RGBImageType
RGBImageType
;
typedef
RGBImageType
::
PixelType
RGBPixelType
;
typedef
UInt
16
VectorImageType
LabelVectorImageType
;
typedef
UInt
32
VectorImageType
LabelVectorImageType
;
typedef
LabelVectorImageType
::
PixelType
LabelVectorType
;
typedef
itk
::
NumericTraits
...
...
@@ -196,7 +197,7 @@ public:
typedef
itk
::
ImageRegionConstIterator
<
FloatVectorImageType
>
IteratorType
;
typedef
itk
::
ImageRegionConstIterator
<
UInt16
ImageType
>
LabelIteratorType
;
<
Label
ImageType
>
LabelIteratorType
;
// Manual label LUT
typedef
otb
::
ChangeLabelImageFilter
...
...
@@ -783,7 +784,7 @@ private:
if
(
nextpos
==
std
::
string
::
npos
)
continue
;
length
=
nextpos
-
pos
;
LabelType
clabel
=
atoi
(
line
.
substr
(
pos
,
length
).
c_str
());
LabelType
clabel
=
boost
::
lexical_cast
<
LabelType
>
(
line
.
substr
(
pos
,
length
).
c_str
());
// Retrieve the color
VectorPixelType
color
(
3
);
color
.
Fill
(
0
);
...
...
Modules/Applications/AppImageUtils/otb-module.cmake
View file @
bc9106ae
...
...
@@ -23,6 +23,7 @@ set(DOCUMENTATION "Image utils and handling application.")
otb_module
(
OTBAppImageUtils
DEPENDS
OTBApplicationEngine
OTBBoostAdapters
OTBCarto
OTBColorMap
OTBCommon
...
...
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