How to get patches coordinates from RandCropByPosNegLabeld? #1751
Unanswered
OeslleLucena
asked this question in
Q&A
Replies: 1 comment
-
The centres of the segmentations are stored within the class, but aren't returned to the user: https://github.com/Project-MONAI/MONAI/blob/master/monai/transforms/croppad/array.py#L607. This seems like it would be an easy modification to make. Feel free to create an issue as a feature request and I'll have a look at it. |
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
-
Is there a way I can get the coordinates for all patches sampled from
RandCropByPosNegLabeld
?After the forward pass, I can see that the batch dict has
image_meta_dict
andlabel_meta_dict
but I cannot find the coordinates from the sampled patches. I triedbatch['image_meta_dict']['slice_start'])
andbatch['image_meta_dict']['slice_end']
but I get [0,0,0,0] from both.Beta Was this translation helpful? Give feedback.
All reactions