Hello,<br><br>I have encountered some errors when using itk to generate histogram for scalar images:<br><br><span style="font-family:&#39;DejaVu Sans Mono&#39;;font-size:9pt;color:#aa0000">itk::ExceptionObject (0x380c7b0)</span>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:&#39;DejaVu Sans Mono&#39;;font-size:9pt;color:#aa0000">Location: &quot;bool itk::Statistics::DenseFrequencyContainer::IncreaseFrequency(long unsigned int, float)&quot; </span></p>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:&#39;DejaVu Sans Mono&#39;;font-size:9pt;color:#aa0000">File: C:\Users\liuy5\Imaging\Libraries\MinGW\ITK\InsightToolkit-3.20.1\src\Code\Numerics\Statistics\itkDenseFrequencyContainer.cxx</span></p>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:&#39;DejaVu Sans Mono&#39;;font-size:9pt;color:#aa0000">Line: 84</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:&#39;DejaVu Sans Mono&#39;;font-size:9pt;color:#aa0000">Description: itk::ERROR: DenseFrequencyContainer(0x7d9ac90): Frequency container saturated for Instance </span></p>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;font-family:&#39;DejaVu Sans Mono&#39;;font-size:9pt;color:#aa0000"><br></p>Here is the info of the dataset causing the DenseFrequencyContainer to panic.<br>
<br>Width:  75.79 mm (960)<br>Height:  75.79 mm (960)<br>Depth:  7.53 mm (54)<br>Resolution:  12.667 pixels per mm<br>Voxel size: 0.08x0.08x0.14 mm<br>Bits per pixel: 16 (unsigned)<br><br>By looking into source code of DenseFrequencyContainer I see there is a numeric limitation:<br>
<br>line 80: const FrequencyType largestIntegerThatFitsInFloat = 16777216;<br><br>the 16777216 doesn&#39;t seems to be large enough, for example 960*960*54 (X * Y * Z) would be larger than the number.<br><br>May I have some help to solve the problem?<br>
<br>Thanks<br>Yanling<br>