Functions | |
def | intersect_box_mask |
def | mask_overlap |
def mask.mask_transform.intersect_box_mask | ( | ex_box, | |
gt_box, | |||
gt_mask | |||
) |
This function calculate the intersection part of a external box and gt_box, mask it according to gt_mask Args: ex_box: external ROIS gt_box: ground truth boxes gt_mask: ground truth masks, not been resized yet Returns: regression_target: logical numpy array
Definition at line 11 of file mask_transform.py.
def mask.mask_transform.mask_overlap | ( | box1, | |
box2, | |||
mask1, | |||
mask2 | |||
) |
This function calculate region IOU when masks are inside different boxes Returns: intersection over unions of this two masks
Definition at line 40 of file mask_transform.py.