Pixel correlation / similarity in an image Python
Correlation is a measure to evaluate mutual relationship or connection between two or more things, usually vectors, not single point. Pixel is a single point with a single value. So, in your case, I would subtract pixel value form each pixel value of the image, looking at the difference in this case.
I am new in Python.
I have an image of size 8*8, and when flattened = 64. Is there any function that measures the correlation between the pixel i and all the other pixels in this image ? 
So at the end I want to plot a 64*64 matrix of correlation. 
Thanks !