フィルターのクリア

Find Correraltion coefficient of two adjacent pixels

8 ビュー (過去 30 日間)
LOKESH
LOKESH 2012 年 2 月 19 日
回答済み: Ali Broumandnia 2017 年 1 月 11 日
I have 2 grayscale or color images. I want to find the histogram for the correlation of adjacent pixels of these 2 images(horizontally and vertically) using Histogram.
How can I choose n pairs of pixels. Let Images be I1 I2.
Also need to find MSE, 2-d Correlation coefficient & covariance.
Also what is CROSS-CORRELATION
Thanks

回答 (3 件)

Walter Roberson
Walter Roberson 2012 年 2 月 19 日
What did your country's version of Google reply with when you gave it the query,
Also what is CROSS-CORRELATION
??
  1 件のコメント
LOKESH
LOKESH 2012 年 2 月 20 日
Hello sir.Leave the Cross correlation.
Any solution for finding correlation coeffecient[for horizontal direction of adjacent pixels]

サインインしてコメントする。


Image Analyst
Image Analyst 2012 年 2 月 19 日
Perhaps you're really thinking of the gray level cooccurrence matrix??? That is performed by graycomatrix() in the Image Processing Toolbox. Because with a histogram, you lose all knowledge of whether a graylevel (belonging to a particular pixel) was next to another gray level. The histogram has no clue where the gray levels came from but graycomatrix does.
  1 件のコメント
LOKESH
LOKESH 2012 年 2 月 20 日
I am unable to get the graycomatrix() basics. I want to have the CORRELATION COEFFICIENT for horizontal direction of adjacent pixels.
This gives me a Histogram having 2 axes[(x,y), (x+1,y)], which displays values of pixels.
See at: http://www.freeimagehosting.net/wn2f5
http://www.freeimagehosting.net/nnbsy

サインインしてコメントする。


Ali Broumandnia
Ali Broumandnia 2017 年 1 月 11 日
function r_xy=AdjancyCorrPixel( P )
%UNTITLED3 Summary of this function goes here
% Detailed explanation goes here
x1 = double(P(:,1:end-1));
y1 = double(P(:,2:end));
randIndex1 = randperm(numel(x1));
randIndex1 = randIndex1(1:3000);
x = x1(randIndex1);
y = y1(randIndex1);
r_xy = corrcoef(x,y);
scatter(x,y);
xlabel('Pixel gray value on location (x,y)')
ylabel('Pixel gray value on location (x+1,y)')
end

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by