Commit 419399c4 authored by remicres's avatar remicres

FIX: approximate closely the node size in memory

parent e211f67c
......@@ -94,7 +94,7 @@ namespace lsrm
float ComputeMergingCost(NodePointerType n1, NodePointerType n2);
void UpdateSpecificAttributes(NodePointerType n1, NodePointerType n2);
void InitFromImage();
unsigned int GetNodeMemory(NodePointerType &node);
long long unsigned int GetNodeMemory(NodePointerType &node);
};
} // end of namespace lsrm
......
......@@ -131,7 +131,7 @@ namespace lsrm
}
template<class TImage>
unsigned int
long long unsigned int
BaatzSegmenter<TImage>::GetNodeMemory(NodePointerType &node)
{
......
......@@ -84,7 +84,7 @@ namespace lsrm
/*
* Returns the memory (in bytes) occupied by one node of the graph
*/
virtual unsigned int GetNodeMemory(NodePointerType &node) = 0;
virtual long long unsigned int GetNodeMemory(NodePointerType &node) = 0;
/*
* Returns the memory (in bytes) occupied by the entire graph
......
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