| Transform | Description | |-----------|-------------| | RandSimulateLowResolution | Reduce effective resolution | | RandSpacing | Randomly change pixel spacing (simulate different acquisition grids) |
MONAI introduces a concept called . When you chain affine transformations (rotate, zoom, resize), MONAI combines them into a single mathematical operation before applying them to the data. monai data augmentation
transforms = Compose([ # 1. Load Image/Label LoadImaged(keys=["image", "label"]), 1mm x 1mm x 1mm) Spacingd(keys=["image"
# 3. Resample to consistent voxel spacing (e.g., 1mm x 1mm x 1mm) Spacingd(keys=["image", "label"], pixdim=(1.0, 1.0, 1.0), mode=("bilinear", "nearest")), monai data augmentation