Commit ac5677f4 authored by Gaetano Raffaele's avatar Gaetano Raffaele

FIX: solves a 64-bit type issue in automatic layout configuration

parent 9c4810ec
......@@ -316,9 +316,9 @@ void Controller<TSegmenter>::GetAutomaticConfiguration()
itkDebugMacro(<<"Maximum number of nodes in memory is " << maximumNumberOfNodesInMemory);
// Number of nodes in the entire image
const unsigned int imageWidth = m_InputImage->GetLargestPossibleRegion().GetSize()[0];
const unsigned int imageHeight = m_InputImage->GetLargestPossibleRegion().GetSize()[1];
const unsigned long int nbOfNodesInImage = imageWidth*imageHeight;
const std::size_t imageWidth = m_InputImage->GetLargestPossibleRegion().GetSize()[0];
const std::size_t imageHeight = m_InputImage->GetLargestPossibleRegion().GetSize()[1];
const std::size_t nbOfNodesInImage = imageWidth*imageHeight;
// Default layout: 1x1
m_NbTilesX = 1;
......
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