I = imread('C:\cameraman.tif');
imshow(I)
offsets = [0 1; -1 1;-1 0;-1 -1];
[glcms,SI] = graycomatrix(I,'Offset',offsets);
imshow(rescale(SI))
whos
I = imread('C:\cameraman.tif');
imshow(I)
glcm = graycomatrix(I,'Offset',[2 0])
I = [ 1 1 5 6 8 8; 2 3 5 7 0 2; 0 2 3 5 6 7]
[glcm,SI] = graycomatrix(I
2021-12-11 20:13:36
479B
matlab
1