The Bug is very simple. Instead of dividing the pixel value sum by the number of positive pixels, it is divided by the the whole pixel number.
This is wrong.
Description
Related Objects
- Mentioned In
- T27033: Clean up stale remote branches
Event Timeline
User muellert has pushed new remote branch:
bug-19602-Wrong-calculated-value-for-MPP-rebased
to fix this issue two classes have to be changed:
mitkExtendeLabelStatisticsImageFilter*: The only thing that has to be done is to sum up the positive pixels in the method ComputeSkewnessKurtosisAndMPP() and divide the value for MPP by this value
mitkExtendeStatisticsImageFilter: The only thing that has to be done is to sum up the positive pixels in the method ComputeSkewnessKurtosisAndMPP() and divide the value for MPP by this value
Change unit test:
In mitkImageStatisticsTextureAnalysisTest.cpp one improvement has to be made. The issue in the unit test is, that the test image contains only postive pixels. So the occuring error in the MPP value cannot be seen. Due to this negative pixel value will be included in one test image.