How can I extract similar objects in an image?

4 views (last 30 days)
Hello every one.
Thank you in advance for your help.
I want to extract automatically shape q from image b. As you can see, there are four of shape q.
I do not know how?
I tried to use feature extraction but it did not work.
Please help me.

Answers (1)

Image Analyst
Image Analyst on 31 Jul 2015
First try using either normalized cross correlation, demo script attached below this message,
  4 Comments
Ro Shu
Ro Shu on 31 Jul 2015
like this image in which similar patterns are clear
Image Analyst
Image Analyst on 31 Jul 2015
The template does not have a position. It's just a template. Then normxcorr2 will find out where the template lives in the other, larger image. It will work for either of those two small templates you posted as long as they're the same size feature, and same orientation, in the larger image you're going to search.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!