Skip to content

Add random crop transform #570

@mathpluscode

Description

@mathpluscode

🚀 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions