Image.triplepoint#
- Image.triplepoint(**kwargs: Any) Self[source]#
Find triple points
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
Note
Computed using the hit-or-miss morphological operator.
- References:
P. Corke, Robotics, Vision & Control for Python, Springer, 2023, Section 11.6.3.
- Seealso: