GLCM Image features extraction using glcmcomatrix.
GLCM based image features extraction using glcmcomatrix. in Main.m script call glcm_features1.m file to extract the features of images. Main.m clear all; I=imread('C:\Users\Admin\Desktop\Code\index.jpg'); imshow(I); i=rgb2gray(I); imshow(i); circuitboard=rot90(rgb2gray(imread('C:\Users\Admin\Desktop\Code\index.jpg'))); imshow(circuitboard); offsets = [0 1; -1 1;-1 0;-1 -1]; glcm = graycomatrix(circuitboard,'offset',offsets); stats = GLCM_Features1(glcm,0) % stats = GLCMFeatures(glcm); %figure, plot([stats.Correlation]); %figure, plot([stats.Contrast]); %figure, plot([stats.Homogeneity]); %figure, plot([stats.Energy]); %title('Texture Correlation as a function of offset'); %xlabel('Horizontal Offset') %ylabel('Correlation') %[glcm, SI] = graycomatrix(I,'NumLevels',9,'GrayLimits',[]) %GLCMFeatures(glcm); %glcm = [0 1 2 3;1 1 2 3;1 0 2 0;0 0 0 3]; %stats = graycoprops(glcm); -------------...