1
我有一张图片。我创建了共生矩阵(graycomatrix
)提取不同的特性(对比度,相关性)等就可以了(graycoprops
)在矩阵中保存不同的'graycoprops'属性值[MATLAB]
x = []
for a lot of pictures, do the same:
imgB = imread('currentLoopImage.jpg')
contrast = graycoprops(graycomatrix(rgb2gray(imgB)), 'Contrast')
correlation = graycoprops(graycomatrix(rgb2gray(imgB)), 'Correlation')
energy = graycoprops(graycomatrix(rgb2gray(imgB)), 'Energy')
homogeneity = graycoprops(graycomatrix(rgb2gray(imgB)), 'Homogeneity')
x = [x;contrast;correlation;energy;homogeneity]
的事情是,我需要节省的是矩阵X的所有值,但我出现以下错误:
CAT arguments are not consistent in structure field names.
,因为这是我的输出从各类型得到:
homogeneity =
Homogeneity: 0.8587
有不同的类型,所以我不能SAV e他们在X矩阵上。
输出矩阵X,应该只保存数字,而忽略“的均匀性”
有人能告诉我是谁,我可以做到这一点?