I am working in the filed of digital image processing. Recently I read a paper that plots Grey Level Co-occurrence Matrix (GLCM) of an image for some processing. As it is shown in following Figure
I am trying to plot GLCM in MATLAB using the
graycoprops function but not getting expected results.
I am using the following MATLAB code.
img = imread('lena.bmp'); if(size(img, 3) == 3) img = rgb2gray(img); end subplot(1,2,1), imshow(img); subplot(1,2,1), plot(graycoprops(img));
Kindly tell me that how can I plot GLCM as it is shown in the Figure.