Ask Your Question
1

compare image to images in database

asked 2012-08-21 01:11:06 -0600

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?

edit retag flag offensive close merge delete

Comments

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

dhaval257 gravatar imagedhaval257 ( 2013-03-04 22:30:31 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2012-08-21 13:29:22 -0600

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

edit flag offensive delete link more

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 ( 2012-08-22 05:53:00 -0600 )edit
0

answered 2012-08-21 07:59:28 -0600

imran gravatar image
edit flag offensive delete link more

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 ( 2012-08-22 05:49:05 -0600 )edit

Question Tools

Stats

Asked: 2012-08-21 01:11:06 -0600

Seen: 2,086 times

Last updated: Aug 21 '12