Ask Your Question

Revision history [back]

Get mean coordinates of active pixels

I would like to retrieve the mean coordinates of pixels in a binary image/mat which are not 0. Is there an existing way of doing this in OpenCV?

Regards, Rupert