Crop to match #7558
-
Hey Community, is there a MONAI transform like ResampleToMatchd but for cropping? Lets say i have two volumes and one is just a small patch within the bigger volume. As both volumes have center and spacing coordinates, is there a monai transform to overlap both images in pixelspace by cropping the bigger volume to the field of view of the smaller one. Best wishes :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @kenrickschulze, thanks for your interest here. At present, we don't offer support for the "crop to match" operation. However, you could use the MONAI/monai/transforms/croppad/array.py Line 462 in ec63e06 Hope it helps, thanks. |
Beta Was this translation helpful? Give feedback.
Hi @kenrickschulze, thanks for your interest here.
At present, we don't offer support for the "crop to match" operation. However, you could use the
SpatialCrop
which admits an "roi_center" parameter. By using "roi_center", you can specify the center for cropping your data.MONAI/monai/transforms/croppad/array.py
Line 462 in ec63e06
Hope it helps, thanks.