Ask Your Question
2

How to filter wrong matches?

asked 2014-09-20 12:28:32 -0600

leo150 gravatar image

updated 2014-09-20 12:29:36 -0600

I use matching_to_many_image sample to find one image among multiple.

const string defaultDetectorType = "SURF";
const string defaultDescriptorType = "SIFT";
const string defaultMatcherType = "FlannBased";

It works perfect and finds query.png among train images: image description

Image0: 0%; matches: 0 of 538
Image1: 0%; matches: 0 of 538
Image2: 100%; matches: 538 of 538

Problem is when I don't add query image or something same to train I get this: image description

Image0: 62.2677%; matches: 335 of 538
Image1: 37.7323%; matches: 203 of 538

Of course it's wrong matches but I don't understand how to filter them. Please help me. How to get 0% match like in first example?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-09-21 09:46:43 -0600

The keyword here is the RANSAC-Algorithm (http://en.wikipedia.org/wiki/RANSAC)

Roughly speaking, you try to find the matches that are consistent with each other. In the case with the boxes, all connection lines are horizontal lines of same length. The matches in the box/cat-pair are rather random and not consistent with each other.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-09-20 12:28:32 -0600

Seen: 752 times

Last updated: Sep 21 '14