findNonZero retrieves the locations of all non-zero
pixels in an image.
findNonZero(image)| image | An an 8-bit (8U) single-channel |
|---|
A data frame with two columns, corresponding to the x (columns) and y (rows) coordinates of the non-zero pixels.
Simon Garnier, garnier@njit.edu
# TODO