Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Cresson Remi
LSGRM
Commits
231923e1
Commit
231923e1
authored
Aug 09, 2016
by
remicres
Browse files
FIX: change label image pixel type to UInt32
parent
7df06429
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/lsrmGraphToOtbImage.h
View file @
231923e1
...
...
@@ -24,7 +24,7 @@ namespace lsrm
typedef
typename
GraphType
::
NodeType
NodeType
;
typedef
std
::
vector
<
std
::
shared_ptr
<
NodeType
>
>
NodeList
;
typedef
typename
NodeList
::
const_iterator
NodeConstIterator
;
typedef
unsigned
long
int
LabelPixelType
;
typedef
unsigned
int
LabelPixelType
;
typedef
otb
::
Image
<
LabelPixelType
,
2
>
LabelImageType
;
using
ContourOperator
=
lp
::
ContourOperations
;
...
...
include/lsrmGraphToOtbImage.txx
View file @
231923e1
...
...
@@ -31,7 +31,7 @@ namespace lsrm
it.Set(0);
// Start at 1 (value 0 can be used for invalid pixels)
long unsigned int
label = 1;
LabelImageType::InternalPixelType
label = 1;
for(auto& region : graph.m_Nodes)
{
lp::CellLists borderPixels;
...
...
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