Commit 231923e1 authored by remicres's avatar remicres
Browse files

FIX: change label image pixel type to UInt32

parent 7df06429
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment