bbox#
- rlemasklib.RLEMask.bbox()[source][C source]#
The bounding box of the foreground, i.e. the smallest rectangle that contains the mask.
- Returns:
A float32 numpy array [x, y, width, height] of the bounding box of the mask.
- Return type:
Examples
.bbox() == np.array([3, 1, 4, 3])See also
largest_interior_rectangle()for the largest rectangle inside the mask.