Skip to content

missing # in metrics.py #6

@qsyao

Description

@qsyao

def _crop_to_bounding_box(mask, bbox_min, bbox_max):
"""Crops a 2D or 3D mask to the bounding box specified by bbox_{min,max}."""

we need to zeropad the cropped region with 1 voxel at the lower,

the right (and the back on 3D) sides. This is required to obtain the

"full" convolution result with the 2x2 (or 2x2x2 in 3D) kernel.

TODO: This is correct only if the object is interior to the

bounding box.

cropmask = np.zeros((bbox_max - bbox_min) + 2, np.uint8)

TODO ......

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions