Repository navigation
BUG: Fix #734 and extend GTest for GetAxisAlignedBoundingBoxRegion - #732
Merged
dzenanz merged 2 commits intoApr 16, 2019
InsightSoftwareConsortium:masterfrom
N-Dekker:BUG-2D-ImageMaskSpatialObject-GetAxisAlignedBoundingBoxRegion
Merged
dzenanz merged 2 commits intoInsightSoftwareConsortium:masterfrom N-Dekker:BUG-2D-ImageMaskSpatialObject-GetAxisAlignedBoundingBoxRegion
dzenanz merged 2 commits into
InsightSoftwareConsortium:masterfrom
N-Dekker:BUG-2D-ImageMaskSpatialObject-GetAxisAlignedBoundingBoxRegion
Conversation
dzenanz
approved these changes
Apr 15, 2019
Fixed both bugs in `ImageMaskSpatialObject::GetAxisAlignedBoundingBoxRegion()` that are reported by issue #734 ("Incorrect results GetAxisAlignedBoundingBoxRegion() for 2D"): 1. When the image is entirely black (all zero's). In this case, a bounding box region size of zero is expected, but instead, the returned region appeared to have a very large size! 2. When the (N-dimensional) index of the requested region of the image has non-zero coordinates. In this case, the size of the returned bounding box region was also incorrect, because the function did not correctly take the image region index into account.
Extend the GoogleTest from the legacy `ImageMaskSpatialObject` member function `GetAxisAlignedBoundingBoxRegion`, now doing each test for both 2D and 3D, with both a minimal and a slightly less trivial image region.
Contributor
Author
N-Dekker
deleted the
BUG-2D-ImageMaskSpatialObject-GetAxisAlignedBoundingBoxRegion
branch
May 5, 2019 10:26
hjmjohnson
pushed a commit
to hjmjohnson/ITK
that referenced
this pull request
May 6, 2026
…-ImageMaskSpatialObject-GetAxisAlignedBoundingBoxRegion BUG: Fix InsightSoftwareConsortium#734 and extend GTest for GetAxisAlignedBoundingBoxRegion
hjmjohnson
pushed a commit
to hjmjohnson/ITK
that referenced
this pull request
May 12, 2026
…-ImageMaskSpatialObject-GetAxisAlignedBoundingBoxRegion BUG: Fix InsightSoftwareConsortium#734 and extend GTest for GetAxisAlignedBoundingBoxRegion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ImageMaskSpatialObject::GetAxisAlignedBoundingBoxRegion()