2015-02-06 16:26:40 -0600 | asked a question | Computing radial average of the autocorrelation of a binary image Hello, I am a new user of OpenCV. I need to extract the typical distance between patches in a set of images I have. As I understand the right way to do it is performing the radial average of the autocorrelation of the image. Is there a smart way to do it on OpenCV? I tried to search on this topic but haven't found something useful.. My data is originally a jpg image, black and white, and I convert it to binary image using OpenCV image thresholding(not sure that I did it right). The question is how now I convert the 2D binary matrix or ones and zeros to a list of the coordinates of only the ones. The basic code line is this one: As an example for an image I attach here this one - |