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することはできませんそれらをX行列上に置く。
出力行列X、数字のみを保存し、無視すべきである「均質性」という
誰かが私を伝えることができ、私はこれを誰行うことができますか? graycoprops()
例から