Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Cresson Remi
LSGRM
Commits
abf96caa
Commit
abf96caa
authored
Sep 02, 2016
by
remicres
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX: correct pixel memory footprint
parent
a982ace7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
include/lsgrmController.txx
include/lsgrmController.txx
+5
-5
No files found.
include/lsgrmController.txx
View file @
abf96caa
...
...
@@ -236,17 +236,17 @@ unsigned int Controller<TSegmenter>::GetNodeMemory()
// Get the memory occupied by the graph, normalize it by n*n
unsigned int memory = segmenter.GetGraphMemory() / (n*n);
itk
Debu
gMacro(<<"Size of a node is " << memory);
itk
Warnin
gMacro(<<"Size of a node is " << memory);
// Get the memory occupied by one pixel of the image
unsigned int pixelMemory = sizeof(
typename ImageType::PixelType
)
+ sizeof(typename ImageType::InternalPixelType)
* m_InputImage->GetNumberOfComponentsPerPixel();
unsigned int pixelMemory =
sizeof(
m_InputImage->GetBufferPointer()
)
* m_InputImage->GetNumberOfComponentsPerPixel();
itk
Debu
gMacro(<<"Size of an image pixel is " << pixelMemory);
itk
Warnin
gMacro(<<"Size of an image pixel is " << pixelMemory);
memory += pixelMemory;
itk
Debu
gMacro(<<"Size of a node+pixel is " << memory);
itk
Warnin
gMacro(<<"Size of a node+pixel is " << memory);
return memory;
}
...
...
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