Commit 5d558d3
BUG: Fix issue #785 removing BoundingBox check from ImageMask IsInside
Fixed issue #785 (ImageMaskSpatialObject IsInside should not depend on
distant pixels) by removing the BoundingBox check from
`ImageMask::IsInsideInObjectSpace`.
It appears that the computed bounding box is too small to recognize
all points whose interpolated pixel value is non-zero as being inside.
The run-time duration might become either slightly longer or slightly
shorter, depending on the image. In practice, the performance effect
of this commit appears very small (in either way).1 parent 8d4676d commit 5d558d3
File tree
1 file changed
+11
-14
lines changed- Modules/Core/SpatialObjects/include
1 file changed
+11
-14
lines changedLines changed: 11 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 59 | + | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
| |||
0 commit comments