machinevisiontoolbox.Image.triplepoint
- Image.triplepoint(**kwargs)
Find triple points
- Parameters:
kwargs – options passed to
hitormiss
- Returns:
Image
- Return type:
Image
instance
Return a binary image where pixels are True if the corresponding pixel in the binary image is a triple point, that is where three single-pixel wide line intersect. These are the Voronoi points in an image skeleton.
Example:
>>> from machinevisiontoolbox import Image >>> img = Image.String('000000|011110|001000|001000|000000') >>> img.print() 0 0 0 0 0 0 0 1 1 1 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 >>> img.triplepoint().print() 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0