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