how to find sub matrixes in large one

조회 수: 3 (최근 30일)
xuan hau nguyen
xuan hau nguyen 2017년 4월 14일
댓글: xuan hau nguyen 2017년 4월 17일
I try to find sub matrixes in large one. I read documents a lot, but didnt find functions support for this one please help me
  댓글 수: 2
Stephen23
Stephen23 2017년 4월 14일
편집: Stephen23 2017년 4월 14일
Basically loop over the indices and check the match using your chosen difference metric. There is no magic solution.
Image Analyst
Image Analyst 2017년 4월 14일
Well it might not be magic, but it might cut down on the number of lines if you use normxcorr2() and look for the max value, as I show in my demo below.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2017년 4월 14일
If you have the Image Processing Toolbox, you can use normxcorr2(). Demo m-file is attached below the image.
  댓글 수: 12
Image Analyst
Image Analyst 2017년 4월 17일
What was your template?
xuan hau nguyen
xuan hau nguyen 2017년 4월 17일
example a my Tamplate [1 1 1 1 1 1; 1 1 1 1 1 1; 1 1 1 1 1 1]

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by