Ask Your Question

tytanium0503's profile - activity

2015-06-14 01:15:11 -0600 commented question [Python] FlannBasedMatcher image retrieval

I figured out that I can do this by using the imgIdx property on the DMatcher object. The imgIdx property is the order unto which the descriptor was added to the flannbasedmatcher with flannbasedmatcher.add(descriptor).

Having more problems though..

when I call train() on the flannbasedmatcher it seems to run extremely quickly. Like it's not doing anything. The subsequent matching is taking a really long time as well.

What I'm trying to do in a nutshell is:

1) cram a bunch of image descriptors in a flannbasedmatcher
2) match one image against this large number of descriptors
3) see which image has the most matches against the target image
4) display this image to see if it found the right thing

Also, I'm a huge noob to this, so ignorance could certainly be at play here

2015-06-14 00:28:44 -0600 asked a question [Python] FlannBasedMatcher image retrieval

I have a database of images that I'm searching through.

For each image I:

calculate descriptors with SIFT
use flann.add([descriptor]) (where flann is a FlannBasedMatcher)

I then use flann.knnMatch() to find matches for a target image

I'm able to get matches, but I'm struggling to piece together which image 'matched' my target image. I have a collection of dmatch object-pairs, but I don't know how to associate it with one particular image or its descriptors. In other code examples people create a sort of look up table based on the number of descriptors an image had, but even that doesn't quite make sense to me.

Thanks so much for any help!