First time here? Check out the FAQ!

Ask Your Question
1

compare image to images in database

asked Aug 21 '12

mrgloom gravatar image

I have a lot of images and have precomputed histograms for them stored in db, how to fast find best k matches to input image?

Preview: (hide)

Comments

Hello, Which database are you using. I am working on similar project. Help me

dhaval257 gravatar imagedhaval257 (Mar 5 '13)edit

2 answers

Sort by » oldest newest most voted
1

answered Aug 21 '12

Use the flann module. knnSearch function allows you to find k nearest matches. See docs:

http://docs.opencv.org/modules/flann/doc/flann_fast_approximate_nearest_neighbor_search.html

Preview: (hide)

Comments

not sure how to use this function and I must load all database record in memory? is it suitable not only for interest points matching? how it will compare my histogramms?

mrgloom gravatar imagemrgloom (Aug 22 '12)edit
0

answered Aug 21 '12

imran gravatar image
Preview: (hide)

Comments

Yes,I already use this function to compare histograms, but maybe there is a better way than compute each-to-each difference for all records in database?

mrgloom gravatar imagemrgloom (Aug 22 '12)edit

Question Tools

Stats

Asked: Aug 21 '12

Seen: 2,321 times

Last updated: Aug 21 '12