Introduction - If you have any usage issues, please Google them yourself
In order to capture the spatial dependence of gray-level values which contribute to the perception of texture, a 2d dependence matrix known as a gray-level co-occurrence matrix is extensively used in texture analysis.So, this is a code that calculate a co-occurrence matrix of the image and return the following features:
ENERGY, CONTRAST, CORRELATION and HOMOGENEITY.