Skip to content

Commit b1a96c5

Browse files
authored
update bbox docstring (#3724)
Signed-off-by: Wenqi Li <[email protected]>
1 parent 4aa3596 commit b1a96c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monai/transforms/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ def generate_spatial_bounding_box(
874874
margin: Union[Sequence[int], int] = 0,
875875
) -> Tuple[List[int], List[int]]:
876876
"""
877-
generate the spatial bounding box of foreground in the image with start-end positions (inclusive).
877+
Generate the spatial bounding box of foreground in the image with start-end positions (inclusive).
878878
Users can define arbitrary function to select expected foreground from the whole image or specified channels.
879879
And it can also add margin to every dim of the bounding box.
880880
The output format of the coordinates is:
@@ -886,7 +886,7 @@ def generate_spatial_bounding_box(
886886
This function returns [-1, -1, ...], [-1, -1, ...] if there's no positive intensity.
887887
888888
Args:
889-
img: source image to generate bounding box from.
889+
img: a "channel-first" image of shape (C, spatial_dim1[, spatial_dim2, ...]) to generate bounding box from.
890890
select_fn: function to select expected foreground, default is to select values > 0.
891891
channel_indices: if defined, select foreground only on the specified channels
892892
of image. if None, select foreground on the whole image.

0 commit comments

Comments
 (0)