I've a picture. I create the co-occurrence matrix (graycomatrix
) to extract different properties (contrast, correlation) etc on it (graycoprops
)
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引数の構造体フィールド名の一貫性がありません。
これがそれぞれのタイプから得られる出力です:
homogeneity =
Homogeneity: 0.8587
There are different types, so I can't save them on the X matrix.
The output matrix X, should save only the numbers, and ignore that "Homogenity"
誰かが私にこれを誰ができるのか教えてもらえますか?