Skip to content

Commit d7d4dc0

Browse files
KumoLiuwyli
andauthored
Update monai/transforms/croppad/array.py
Co-authored-by: Wenqi Li <831580+wyli@users.noreply.github.com> Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
1 parent 2ab990d commit d7d4dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/transforms/croppad/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ def __init__(
837837
channel_indices: if defined, select foreground only on the specified channels
838838
of image. if None, select foreground on the whole image.
839839
margin: add margin value to spatial dims of the bounding box, if only 1 value provided, use it for all dims.
840-
allow_smaller: when computing box size with `margin`, whether allow the image size to be smaller
840+
allow_smaller: when computing box size with `margin`, whether to allow the final box edges to be outside of the image edges (the image is smaller than the box). If `False`, part of a padded output box might be outside of the original image, if `True`, the image edges will be used as the box edges.
841841
than box size, default to `False`. If `True`, the output will pad with specified `mode`
842842
when the margined size is larger than image size.
843843
return_coords: whether return the coordinates of spatial bounding box for foreground.

0 commit comments

Comments
 (0)