I am working towards my degree thesis in image processing, and I'm using the Matlab Image Processing toolbox. I'm calculate the correlation of an image with the co-occurrence matrix using the Matlab function graycoprops. My problem is that I can't understand the meaning of the formula that defines the correlation property (see the previous link):

In particular, what are \mu_i, \mu_j, \sigma_i, \sigma_j ,if i and j are graylevels of the image?
I have had the same question, and the paper "Statistical Texture Measures Computed from Gray Level Coocurrence Matrices" by Fritz Albregtsen (2008) was of great help, as it gives a precise definition of all the formulas.