Page MenuHomePhabricator

Image Statistics plugin: histogram bin size for images with small intensity differences
Closed, InvalidPublic

Description

For images with small intensity differences (e.g. min 0 max 0.1), the bin size should be adapted to allow more than two decimals in case of:

  • double/float image type
  • (|max-min|<1)

Event Timeline

Technically, it works. But at small values for binSize (e.g. .001), MitkWorkbench crashes. Something went wrong in Histogram calculation.
See mitkExtendedStatisticsImageFilter:

if (m_UseHistogram)
{
  histogramMeasurement[0] = value;
  m_HistogramPerThread[threadId]->GetIndex(histogramMeasurement, histogramIndex);
  m_HistogramPerThread[threadId]->IncreaseFrequencyOfIndex(histogramIndex, 1);
}

obsolete after T24012 (nBins instead of bin size)