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
419399c4
Commit
419399c4
authored
Aug 11, 2016
by
remicres
Browse files
FIX: approximate closely the node size in memory
parent
e211f67c
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/lsrmBaatzSegmenter.h
View file @
419399c4
...
...
@@ -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
...
...
include/lsrmBaatzSegmenter.txx
View file @
419399c4
...
...
@@ -131,7 +131,7 @@ namespace lsrm
}
template<class TImage>
unsigned int
long long
unsigned int
BaatzSegmenter<TImage>::GetNodeMemory(NodePointerType &node)
{
...
...
include/lsrmSegmenter.h
View file @
419399c4
...
...
@@ -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
...
...
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