2011-11-16 117 views
1

我正在努力實現圖像處理中的學位論文,並使用Matlab圖像處理工具箱。我使用Matlab函數graycoprops來計算圖像與共生矩陣的相關性。我的問題是我無法理解的是定義了相關屬性公式的含義(見previous link):相關公式Matlab

Correlation

特別是,什麼都\mu_i\mu_j\sigma_i\sigma_j,如果ij是圖像的graylevels?

+0

我同意這些定義不是很清楚。傳統上,mu和sigma分別指平均值和標準偏差。這個公式似乎也是這種情況。不過,我不清楚他們的「我」和「j」是什麼意思。 –

回答

3

我會想象它是在xy方向的均值和標準差。 i可能對應於xjy。雖然這只是一個猜測。

編輯:這是通過查看功能代碼支持。我強烈建議你檢查一下自己(只需鍵入edit graycoprops),但這裏的相關部分:

function Corr = calculateCorrelation(glcm,r,c) 
... 
% Calculate the mean and standard deviation of a pixel value in the row 
% direction direction. e.g., for glcm = [0 0;1 0] mr is 2 and Sr is 0. 
mr = meanIndex(r,glcm); 
Sr = stdIndex(r,glcm,mr); 

% mean and standard deviation of pixel value in the column direction, e.g., 
% for glcm = [0 0;1 0] mc is 1 and Sc is 0. 
mc = meanIndex(c,glcm); 
Sc = stdIndex(c,glcm,mc); 
+0

這很有道理,非常感謝!我會按照你的建議檢查功能代碼,謝謝。 – Elettra

+0

沒有問題。這是關於matlab的真棒事情之一;你總是可以看看功能代碼,看看它的功能。非常有用! – eykanal