Blobs.touch#

property Blobs.touch: Any#

Blob edge touch status

Returns:

blob touches the edge of the image

Return type:

bool

Returns true if the blob touches the edge of the image.

Example:

>>> from machinevisiontoolbox import Image
>>> im = Image.Read('shark2.png')
>>> blobs = im.blobs()
>>> blobs[0].touch
False
>>> blobs.touch
array([False, False])