Finding a closest looking segment of data in another sequence

1 回表示 (過去 30 日間)
prashanth A
prashanth A 2014 年 8 月 4 日
回答済み: Image Analyst 2014 年 8 月 4 日
I am doing image processing, in which I came across a situation, where I have to compare two vectors and find an instance of the smaller vector in the larger vector.
Say the two vectors are A: with 100 elements (or entries) and B; with 10 elements. B is a model and it may not be present exactly as it is' in the vector A. I can compare 10 elements at a time and find the difference. Ideal case is that the B is present somewhere and the difference is zero. Otherwise a minimum will result at some random location, and i am missing the location.
Please help me in giving an algorithm such that the i can find Bs' closest instance in A.

採用された回答

Image Analyst
Image Analyst 2014 年 8 月 4 日
Use normxcorr2(), normalized cross correlation.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by