필터 지우기
필터 지우기

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

조회 수: 4 (최근 30일)
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
Walter Roberson
Walter Roberson 2011년 10월 5일
It seems unlikely that that is complete and exact error message. Please copy and paste the complete error traceback.
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.

카테고리

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