-
实现灰度共生矩阵以及四个主要特征提取的函数
资源介绍
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