Error using corr function while finding the correlation of image in matlab

2 ビュー (過去 30 日間)
ganesh  s
ganesh s 2011 年 10 月 5 日
I Keep getting the same Error while finding the correlation of image in matlab using corr function ??? Attempted to access CORR.;ell. any help would be appreciated thanking you
  2 件のコメント
ganesh  s
ganesh s 2011 年 10 月 5 日
??? Attempted to access CORR.%cell.%cell(65,64); index out of bounds because size(CORR.%cell.%cell)=[3,3].
Error in ==> Untitled1 at 26
CORR{1}{d,1}(R(i,j),R(i,j+d))=CORR{1}{d,1}(R(i,j),R(i,j+d))+1;

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

採用された回答

Jan
Jan 2011 年 10 月 5 日
The error message seems to be clear. The problem does not concern the CORR function, but accessing the variable CORR:
CORR{1}{d,1} is a [3x3] array, but you want to access the index [65,64]
You can use the debugger to find the cause of this problem:
dbstop if error
  1 件のコメント
ganesh  s
ganesh s 2011 年 10 月 7 日
thanks jan simson
but i don't have any knowledge about the debugger. do u mean MATLAB debug option through which we run the program?

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

その他の回答 (1 件)

Image Analyst
Image Analyst 2011 年 10 月 5 日
You probably want normxcorr2(), or less likely xcorr2(). You're trying to roll your own and messing up.

Community Treasure Hunt

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

Start Hunting!

Translated by