Image background in image recognition

3 views (last 30 days)
Mats
Mats on 14 Dec 2019
Commented: Image Analyst on 9 Jan 2020
Hi!
I want to find all occurences of this symbol in an image and is currently using CORR2 with a function that steps pixel-by-pixel through a larger image and try to find this symbol. The problem i find is that there are multiples of this symbol partially overlapping which it doesnt recognize as the image i compare to has a white background. How can I make corr2 (or a similar setup) to only match based on the black arrms of the symbol and not the background?
(Although image is attached it does not show, it is essentially a symbol with two crosses overlayed with one tilted 45 degrees.)
  4 Comments
Mats
Mats on 8 Jan 2020
Hi!
Haven't tried it due to winter holidays =)
Will try it this week and get back to you afterward

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 6 Jan 2020
See attached demo that uses normxcorr2() to find a template in a larger image.
  2 Comments
Image Analyst
Image Analyst on 9 Jan 2020
Try raising the threshold to make sure it gets regions that are only really VERY close to the template.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!