Skip to content

Conversation

@N-Dekker
Copy link
Member

The check if not GetBounds()->IsInside(point) appears to make ImageFullSampler sensitive to rounding errors.

These rounding errors are caused by a subtle difference between ITK's ImageBase::TransformIndexToPhysicalPoint (called by elastix ImageFullSampler) and ITK's MatrixOffsetTransformBase::TransformPoint (called by elastix ImageMaskSpatialObject2).

This commit should fix issue #153 "ImageFullSampler with ImageMaskSpatialObject2 misses some pixels"

Related to pull request #147 "ENH: Replace elastix ImageSpatialObject2 by ITK ImageSpatialObject"

N-Dekker added 2 commits June 11, 2019 10:56
The check if not `GetBounds()->IsInside(point)` appears to make `ImageFullSampler` sensitive to rounding errors.

These rounding errors are caused by a subtle difference between ITK's `ImageBase::TransformIndexToPhysicalPoint` (called by elastix ImageFullSampler) and ITK's `MatrixOffsetTransformBase::TransformPoint` (called by elastix ImageMaskSpatialObject2).

This commit should fix issue #153 "ImageFullSampler with ImageMaskSpatialObject2 misses some pixels"

Related to pull request  #147 "ENH: Replace elastix ImageSpatialObject2 by ITK ImageSpatialObject"
@N-Dekker N-Dekker merged commit 2218395 into develop Jun 11, 2019
@N-Dekker N-Dekker deleted the Remove-Bounds-Check-ImageMaskSpatialObject2 branch June 11, 2019 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants