Question about generate_spatial_bounding_box
#3471
yiheng-wang-nv
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
-
I think that's the intended behaviour, the function computes the coordinates, and then we can index the array with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I just found that the
generate_spatial_bounding_box
may create invalid coordinates.For example:
The output of
generate_spatial_bounding_box(a)
is:([99, 99], [100, 100])
However, the valid coordinates of
a
is 0 to 99, and cannot be 100.I think This line:
MONAI/monai/transforms/utils.py
Line 916 in 89f0bd4
may be we should not do
+1
.Am I right?
Beta Was this translation helpful? Give feedback.
All reactions