Blobs.MEC#

property Blobs.MEC: Any#

Minimum enclosing circle of blob

Returns:

Parameters of the minimum enclosing circle

Return type:

ndarray(3) or list of ndarray(3)

The minimum enclosing circle is the smallest circle that can fully contain the blob. It touches the blob at at least three points. Each circle is specified by a 3-tuple (uc, vc, r).

Example:

>>> from machinevisiontoolbox import Image
>>> im = Image.Read('shark2.png')
>>> blobs = im.blobs()
>>> blobs.MEC
[array([370.5   , 340.5   ,  80.2777]), array([170.5   , 140.5   ,  80.2777])]

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

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

plot_MEC MER cv2.minEnclosingCircle