Skip to content

CropForeground with divisible-size bounding boxes #2051

@wyli

Description

@wyli

Is your feature request related to a problem? Please describe.
There's a new requirement for extracting foreground ROIs while keeping the ROI size to be divisible by K.

Describe the solution you'd like
would be great to have a pad_divisible option for CropForeground. For example, if pad_divisible=8, the ROI
extracted would always have a shape divisible by 8.

Describe alternatives you've considered
This could be partly achieved by the CropForeground + DivisiblePad, but the over-cropping + padding introduces artefacts...

from @volcanofly

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions