Image.nonzero#
- Image.nonzero() ndarray[source]#
Find non-zero pixel values as 2D coordinates
- Returns:
coordinates of non-zero pixels
- Return type:
ndarray(2,N)
The (u,v) coordinates are given as columns of the returned array.
Examples
References
P. Corke, Robotics, Vision & Control for Python, Springer, 2023, Section 12.1.3.2.
See also