-
Hi, What this class exactly do when the labels are in the borders or there is not enough image to extract a patch of a specific size. For example, I want a patch of 3x3 if the following array:
Does |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @YerePhy , Thanks for your interest here. Thanks. |
Beta Was this translation helpful? Give feedback.
-
What I am doing wrong if I get the following value error; "random crop ratios must match the number of indices of classes, got 3 and 512 " |
Beta Was this translation helpful? Give feedback.
Hi @YerePhy ,
Thanks for your interest here.
In
RandCropByLabelClasses
, we have the logic to automatically adjust the crop center based on image size:https://github.com/Project-MONAI/MONAI/blob/dev/monai/transforms/utils.py#L425
Thanks.