Project-MONAI / MONAI

AI Toolkit for Healthcare Imaging

Home Page:https://monai.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crop same center

sharonlee12 opened this issue · comments

hello!I would like to make the same crop change to N 3D-images(RandCropByPosNegLabeld). What should I do? should I concatenate them? On which channel is the concatenation made? Hope to receive everyone's reply!

Hi @sharonlee12, to do a deterministic crop, using SpatialCrop instead of RandCropByPosNegLabeld.

class SpatialCrop(Crop):

And you can find data shape assumption here:
https://github.com/Project-MONAI/MONAI/wiki/MONAI-Data-Shape-Assumption

Hope it helps, thanks.