MitkCLGlobalImageFeatures miscalculates DifferenceVariance texture feature
Open, NormalPublic

Description

When run, the output of this feature is always 0. I found a typo in file "Modules/Classification/CLUtilities/include/itkEnhancedHistogramToTextureFeaturesFilter.hxx", line 257:

sumVariance += (i-diffAverage)*(i-diffAverage) * frequency;

should be corrected to

diffVariance += (i-diffAverage)*(i-diffAverage) * frequency;

Turns out the DifferenceVariance value was never calculated in the first place (and sumVariance is also wrong, as the diffVariance calculation was added to it instead).

ac3957 created this task.Tue, Jan 9, 4:57 AM
kislinsk triaged this task as Normal priority.Thu, Jan 18, 12:47 PM
kislinsk added a project: Restricted Project.
kislinsk assigned this task to goetzm.
kislinsk removed goetzm as the assignee of this task.
kislinsk added a subscriber: goetzm.