Blobs.MER#

property Blobs.MER: Any#

Minimum enclosing rectangle of blob

Returns:

Parameters of the minimum enclosing rectangle

Return type:

ndarray(5) or list of ndarray(5)

The minimum enclosing rectangle is the smallest rectangle that can fully contain the blob. It is specified by a 5-tuple (uc, vc, w, h, theta) where (uc, vc) is the center, (w, h) is the width and height, and theta is the orientation.

Example:

>>> from machinevisiontoolbox import Image
>>> im = Image.Read('shark2.png')
>>> blobs = im.blobs()
>>> blobs.MER
[array([372.6061, 353.5892, 106.7243, 144.3885, -86.8202]), array([172.6062, 153.5892, 106.7243, 144.3885, -86.8202])]

(Source code, png, hires.png, pdf)

../../_images/machinevisiontoolbox-Blobs-MER-1.png
Seealso:

plot_MER MEC cv2.minAreaRect