Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Fast Multiresolution Image Querying

by danambroseUK (Beadle)
on Aug 15, 2005 at 21:31 UTC ( #484001=perlquestion: print w/replies, xml ) Need Help??
danambroseUK has asked for the wisdom of the Perl Monks concerning the following question:

Fast Multiresolution Image Querying
I have found a paper on the above topic, in short it is a method of using images to search for other images in a database. You draw a quick sketch - ala Paint; it then searchs the database for simlar images.

Obviously there is some clever maths in there which allow this to work... A brief explaination...

The full paper
Has anyone used this method before? Has it been implimented in perl before? There are few implimentatins, the imgSeek program is a great example of this very powerfull stuff.

Anyone like to code this up in perl??


Edited by Chady -- linkified links.

Replies are listed 'Best First'.
Re: Fast Multiresolution Image Querying
by merlyn (Sage) on Aug 15, 2005 at 21:38 UTC
    What part of "this" do you want in Perl? I'd imagine there's some heavy math for the pixel wrangling, and I wouldn't want to do that in Perl. And the GUI interface will likely require some kit like Tk. Or are you talking about querying their database programmatically through the web?

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

      I intend to make this a web based application. So I would just want perl to do the hardwork encoding the photos and doing the math part...

      But the math is alittle full on - way above my level!

Re: Fast Multiresolution Image Querying
by Chady (Priest) on Aug 16, 2005 at 06:10 UTC
    <plug shame="0" perl-related="no">

    I have implemented an application that uses this CBIR method. It also uses the Enlightenment Foundation Libraries.

    It's still in the alpha stages, and the code is pretty ugly, since it was my first time coding an application in C, but it's open source, so if anyone's interested to have a look and send me critic and comments.



    He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.
    Chady |
    Are you a Linux user in Lebanon? join the Lebanese GNU/Linux User Group.
Re: Fast Multiresolution Image Querying
by SimonClinch (Deacon) on Aug 16, 2005 at 11:38 UTC
    The method for matching a scanned image seems adequately explained in the paper and could be translated from theory into perl.

    However, call me skeptical but I just don't believe the implication in the paper that the same techniques can reliably produce the stated results for a painted query image. Any credible attempt to interpret such an image would need to transform the data in terms of human perception and the suggested paper has not even gone in the right direction for this. Such modelling belongs more properly in the field of psychology and psychotherapy, but can describe the concepts the program needs to aim at when transforming the painted query image and reference image for comparison. See 'Metaphors in Mind: Transformation through symbolic modelling' -

    One world, one people

      Have a look at

      Download this and give it a try - I did and the results were impressive on my photo collection.

      Your correct; By drawing a cat, your not searching for a cat, simply images which are similar to your drawing. One could build upon this with the addition of meta data & reference images. Which would add some context to the searches and could actually be very powerful.

      There are other ways to look at, being shape/path recognition etc. Using the discussed technique could also have a "Find Similar Images" feature- which for say an online photo gallery would be really neat.
Re: Fast Multiresolution Image Querying
by TedPride (Priest) on Aug 16, 2005 at 07:21 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://484001]
Approved by ww
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2018-05-24 02:44 GMT
Find Nodes?
    Voting Booth?