Page MenuHomePhabricator

ImageStatistics is too strict in checking for misalignment
Closed, ResolvedPublic

Description

The ImageStatisticsCalculator checks if the mask- and the reference-image are correctly aligned before actually calculating the statistics.

On some images (mainly rotated MR images) this check fails with a very small misalignment ( e.g. 9.5*10^-15). This is quite unnecessary here and the tolerance should be increased.

Event Timeline

User engelm has pushed new remote branch:

bug-18832-image-statistics-is-too-sctrict

I think this is the case when software components with different internal floating point representations are used.

I have added a "Repair" button to the Segmentation Utilities that overwrites the mask with origin and spacing of the reference image. It should be discussed whether this option is helpful and relevant for everyone, though.

User goerres has pushed new remote branch:

bug-18832-AddMaskRepairButton

User engelm has pushed new remote branch:

bug-18832-increase-tolerance-of-image-statistics

User engelm has pushed new remote branch:

bug-18832-increase-tolerance-of-image-statistics-rebased

User engelm has pushed new remote branch:

bug-18832-increase-tolerance-of-image-statistics-rebased-for-master

[8d0067]: Merge branch 'bug-18832-increase-tolerance-of-image-statistics-rebased

Merged commits:

2016-02-03 09:32:43 Markus Engel [b31fc2]
setting tolerances for coordinates and direction on relevant filters of ImageStatistics