Page MenuHomePhabricator

mitk::ImageStatisticsCalculator should be able to deal with masks smaller than the input image
Closed, ResolvedPublic

Description

mitk::ImageStatisticsCalculator has an operation mode in which it takes a (binary) image mask as second input and calculates statistics of the gray-value input image only for those pixels which are not masked out in the image mask.

Currently, the image mask is assumed to be of the same dimensions (origin, spacing, index, size) as the input image. It would be more practical if also image masks smaller than (but fully inside) the input image could be used. Also checks for correct dimensions of the mask should be added.

Event Timeline

[SVN revision 27441]
ENH (#5999): enable mitk::ImageStatisticsCalculator to deal with image masks smaller than the original gray-value image

Image masks smaller than input image are now allowed. Several checks have been added to ensure that image and mask have same spacing and that voxels are aligned (i.e. it is clear which mask voxel belongs to image which, no significant overlap between voxels).

A unit test should be implemented to verify correct behavior of ImageStatisticsCalculator. See T6006

[SVN revision 27453]
COMP (#5999): remove incorrect typename