Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4549854
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:25:03+00:00 2026-05-21T16:25:03+00:00

I have been querying google for some material about kd-trees and image comparison but

  • 0

I have been querying google for some material about kd-trees and image comparison but I couldn’t make the ‘link’ between the technics for image comparison using kd-trees.
Firstly, I found some articles talking about speed improvement with randomized kd-trees, then I was introduced to SIFT. After understanding basically how SIFT works, I read about nearest neighbor search.

My real question is: If I have a mesh of points from SIFT, then I create the kd-tree for every image. How the nearest neighbor search can help me compare the images? At first, I thought that comparing images with a tree would work with some algorithm checking the tree structure and how near every point is from an image A from a point in the same node in and image B.

If the question is too dumb, please suggest material or some topic for search.

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T16:25:03+00:00Added an answer on May 21, 2026 at 4:25 pm

    I’d suggest first understanding slow feature matching, without kdtrees.

    • input: 1000 reference features, e.g. of faces or flowers; call these F1 .. F1000
    • a query feature Q: which face or flower feature is most like, nearest, Q ?

    As you know,
    SIFT
    reduces an image feature to 128 8-bit numbers, scaled so that
      similarity( feature F, feature Q ) =
    Euclidean distance( SIFT(F), SIFT(Q) ).

    The simplest way to find which of F1 .. F1000 is most like Q
    is just to look at F1, F2 … one by one:

    # find the feature of F1 .. F1000 nearest Q
    nearestdistance = infinity
    nearestindex = 0
    for j in 1 .. 1000:
        distance = Euclideandistance( SIFT(Fj), SIFT(Q) )  # 128 numbers vs. 128 numbers
        if distance < nearestdistance:
            nearestdistance = distance
            nearestindex = j
    

    (Of course one computes the SIFT numbers outside the loop.)

    A Kdtree
    is just a way of finding nearby vectors quickly;
    it has little to do with what is being matched
    (vectors of numbers representing …), or how (Euclidean distance).
    Now kdtrees are very fast for 2d, 3d … up to perhaps 20d,
    but may be no faster than a linear scan of all the data above 20d.
    So how can a kdtree work for features in 128d ?
    The main trick is to quit searching early.
    The paper by Muja and Lowe,
    Fast approximate nearest neighbors with automatic algorithm configuration,
    2009, 10p, describes multiple randomized kdtrees for matching 128d SIFT features.
    (Lowe is the inventor of SIFT.)

    To compare two images I and Q, one finds a set of feature vectors —
    several hundred up to a few thousand SIFT vectors — for each,
    and looks for near matches of these sets.
    (One may think of images as molecules, features as atoms;
    near-matching molecules is much harder than near-matching atoms,
    but it helps to be able to match atoms quickly.)

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have been studying the file system related classes of Adobe AIR 1.5, but so
I have been working on a web services related project for about the last
I have been trying to make this search engine for a MySQL database. Taking
I have been doing some performance analysis on an application I am working on.
I have been successful in querying a Microsoft Access 2003 database (.mdb file) and
i have a input tag which is non editable, but some times i need
I have been querying Geonames for parks per state. Mostly there are under 1000
I've been googling and querying stackoverflow quite a bit but I haven't found this
I have been trying this for so long, but was not able to implement
I have been trying to store image form android sdcard to the sqlite database.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.