(left_top, right_bottom)
return hw[..., 0] * hw[..., 1]
Compute the areas of rectangles given two corners.

    Args:
        left_top (N, 2): left top corner.
        right_bottom (N, 2): right bottom corner.

    Returns:
        area (N): return the area.
Compute the areas of rectangles given two corners.
Compute the areas of rectangles given two corners .
def area_of(left_top, right_bottom):
    """Compute the areas of rectangles given two corners.

    Args:
        left_top (N, 2): left top corner.
        right_bottom (N, 2): right bottom corner.

    Returns:
        area (N): return the area.
    """
    hw = np.clip(right_bottom - left_top, 0.0, None)
    return hw[..., 0] * hw[..., 1]
def area_of ( left_top , right_bottom ) : hw = np . clip ( right_bottom - left_top , 0.0 , None ) return hw [ ... , 0 ] * hw [ ... , 1 ]