필터 지우기
필터 지우기

which type of correlation to use?

조회 수: 1 (최근 30일)
pammy
pammy 2013년 4월 16일
i've a grayscale image and i've divided it into discrete blocks of 8x8
Then, i've calculated the mean of each block and i want to check how one block is correlated to the other block
which type of correlation should i use?
xcorr2
corr2
or something else???
i want the correlation of two image blocks in the range -1, 0, 1
can anybody tell me how to do so?
i've used corrcoef
Error using bsxfun
Mixed integer class inputs are not supported.
Error in cov (line 93)
xc = bsxfun(@minus,x,sum(x,1)/m); % Remove mean
Error in corrcoef>correl (line 209)
r = cov(x);
Error in corrcoef (line 92)
r = correl(x);
93 xc = bsxfun(@minus,x,sum(x,1)/m); % Remove mean
but the above error occurs.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by