diff --git a/include/lsgrmController.txx b/include/lsgrmController.txx index 74398a34348b43e731fd4436eae4cf921c7d0724..93c4eab3cd011b95643d75977313560d9b9effc5 100644 --- a/include/lsgrmController.txx +++ b/include/lsgrmController.txx @@ -236,17 +236,17 @@ unsigned int Controller::GetNodeMemory() // Get the memory occupied by the graph, normalize it by n*n unsigned int memory = segmenter.GetGraphMemory() / (n*n); - itkDebugMacro(<<"Size of a node is " << memory); + itkWarningMacro(<<"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(); - itkDebugMacro(<<"Size of an image pixel is " << pixelMemory); + itkWarningMacro(<<"Size of an image pixel is " << pixelMemory); memory += pixelMemory; - itkDebugMacro(<<"Size of a node+pixel is " << memory); + itkWarningMacro(<<"Size of a node+pixel is " << memory); return memory; }