Gray-Level Cooccurence Matrices

Get the cooccurence matrix and extract contrast, angular second moment, and entropy features from it. 

You have to select the distance between pairs of pixels as well as the orientation. The output image represents the GLCM matrix: