Project-MONAI / MONAI

AI Toolkit for Healthcare Imaging

Home Page:https://monai.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RandCropByPosNegLabeld crop position

sharonlee12 opened this issue · comments

Hello, I would like to know if the RandCropByPosNegLabel cropped position can be returned? Or is there a transform that makes it easier to obtain the cropping position?

Hi @sharonlee12, thanks for your interest here.
You can get crop center by using data.meta["crop_center"].

ret_.meta["crop_center"] = center

Hope it helps, thanks. (convert to discussion for now)