🚀 Feature
Add random crop as a transformer apart from the LabelSampler.
Motivation
I'm doing patch based segmentation. My images are relatively large 512x512x512 and I only take patches of size 128x128x64.
I'm now currently applying random affine on the entire image, but this process is too slow. Therefore, it would be nice to apply a random crop to get images of size 256x256x128, then apply a random affine, then extract patches.
Or is there any other better way to reduce the compute here?
🚀 Feature
Add random crop as a transformer apart from the
LabelSampler.Motivation
I'm doing patch based segmentation. My images are relatively large 512x512x512 and I only take patches of size 128x128x64.
I'm now currently applying random affine on the entire image, but this process is too slow. Therefore, it would be nice to apply a random crop to get images of size 256x256x128, then apply a random affine, then extract patches.
Or is there any other better way to reduce the compute here?