Replies: 1 comment
-
I have boundingboxes, and I want to CenterSpatialCropd my images. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
BoxToMaskd(
box_keys=[box_key],
label_keys=[label_key],
box_mask_keys=["box_mask"],
box_ref_image_keys=image_key,
min_fg_label=-1,
ellipse_mask=True,
),
CenterSpatialCropd(keys=['image', 'box_mask'], roi_size=[72, 72, 72]),
MaskToBoxd(
box_keys=[box_key],
label_keys=[label_key],
box_mask_keys=["box_mask"],
min_fg_label=-1,
),
DeleteItemsd(keys=["box_mask"]),
Beta Was this translation helpful? Give feedback.
All reactions