Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BoxToMask - explicit check for box extending over image shape (Projec…
…t-MONAI#6637) Fixes an unclear error message when BoxToMask is called with box extending over passed spatial shape. Currently user face a numpy value broadcast error. ### Description An explicit check for box values vs `spatial_size` ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [x] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. Signed-off-by: Tomasz Bartczak <[email protected]>
- Loading branch information