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
.
MONAI/monai/transforms/croppad/array.py
Line 443 in ab4bd43
And you can find data shape assumption here:
https://github.com/Project-MONAI/MONAI/wiki/MONAI-Data-Shape-Assumption
Hope it helps, thanks.