Currently, three variables influence the bin handling in QmitkImageStatisticsCalculationThread and ImageStatisticCalculator:
- bool m_UseDefaultNBins
- unsigned int m_nBinsForHistogramStatistics
- bool m_prioritizeNBinsOverBinSize
This is obscure and error prone. Only use one variable and one setter and throw exceptions if given value is invalid.