Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ImageFilter to allow Gaussian filter without filter_size (#8189)
Fixes #8127 Update `ImageFilter` to handle Gaussian filter without requiring `filter_size`. * Modify `monai/transforms/utility/array.py` to allow Gaussian filter without `filter_size`. - Adjust `_check_filter_format` method to skip `filter_size` check for Gaussian filter. Indeed Gauss filter is the only one in the list that doesn't require a filter_size. * Add unit test in `tests/test_image_filter.py` for Gaussian filter without `filter_size`. - Verify output shape matches input shape. Note that this method is compliant with the dictionnary version since this one load the fixed version. Signed-off-by: Eloi <[email protected]> --------- Signed-off-by: Eloi Navet <[email protected]> Signed-off-by: Eloi <[email protected]> Signed-off-by: Eloi [email protected]
- Loading branch information