【问题标题】:Correlation formula Matlab相关公式 Matlab
【发布时间】:2011-11-16 17:11:02
【问题描述】:

我正在攻读图像处理方面的学位论文,我正在使用 Matlab 图像处理工具箱。我正在使用 Matlab 函数graycoprops 计算图像与共现矩阵的相关性。我的问题是我无法理解定义相关属性的公式的含义(参见previous link):

特别是\mu_i\mu_j\sigma_i\sigma_j,如果ij是图像的灰度级,是什么?

【问题讨论】:

  • 我同意定义不是很清楚。传统上 mu 和 sigma 分别指的是平均值和标准差。在这个公式中似乎也是如此。不过,我不清楚“i”和“j”是什么意思。

标签: matlab formula correlation glcm


【解决方案1】:

我想这是xy 方向的平均值和标准差。 i 可能对应于xj 对应于y。不过,这只是猜测。

编辑:通过查看功能代码来支持这一点。我强烈建议您自己检查一下(只需输入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);

【讨论】:

  • 有道理,非常感谢!我会按照你的建议检查功能代码,谢谢。
  • 没有问题。那是关于 matlab 的令人敬畏的事情之一;你总是可以只看功能代码,看看它做了什么。非常有用!
【解决方案2】:

我也有同样的问题,Fritz Albregtsen (2008) 的论文 "Statistical Texture Measures Computed from Gray Level Coocurrence Matrices" 对我有很大帮助,因为它给出了所有公式的精确定义。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多