Page MenuHomePhabricator

Wrong calculated value for MPP in ExtendedLabelStatisticsImageFilter
Closed, WontfixPublic

Description

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.

Event Timeline

User muellert has pushed new remote branch:

bug-19602-Wrong-calculated-value-for-MPP

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.

kislinsk added a subscriber: kislinsk.
This task was automatically closed because it wasn't updated at least since July 2016 (over 2 years). Please re-open this task if you think that it is still relevant. This most probably means that you will resolve it.