Skip to content

fb82/DTM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🙈📐 Delaunay Triangulation Matching (DTM) 🖼️👀

🔥 🐍 Python implementation 🐍 🔥

example example
HarrisZ+ and DoG + AffNet + OriNet + HardNet + Blob matching + DTM + RANSAC

What is it?

  • DTM is a non-deep spatial matching filter based on Delaunay triangulation, like GMS or LPM.
  • The original code was released in Matlab, this is the Python implementation.
  • DTM was originally developed to work with Blob matching, a general framework wich also includes matching strategies like MNN or NNR. Blob matching is also included in this implementation (but it is not mandatory).
  • For the best result, DTM requires as input the candidate matches and their similarity, but can works with spatial information only and no descriptor similarity clues.
  • DTM can also be used as guided matching to increase the correspondences.

Setup (including all the stuff to launch the demo)

Run from the terminal

git clone https://github.com/fb82/DTM.git
cd DTM
git submodule update --init --recursive
pip install -r requirements.txt

The current requirement file has been tested on Ubuntu 24.04.

Launch the demo

To use the demo with the default example image pair run from the terminal

python ./demo.py

or with your image pair as

python ./demo.py <path of 1st image> <path of the 2nd image>

For further details or customizations please inspect the comments in demo.py.

Notes

  • The demo uses DoG and HarrisZ+ keypoints to compute the matches. In case of OOM issues you can select only one kind of keypoints.
  • Blob matching is implemented in PyTorch. By default it runs on CPU to avoid OOM, but if you have enough memory you can try on GPU. The demo allows alternatively the usage of the standard MNN.

Where can I find more details?

See the paper SIFT Matching by Context Exposed (TPAMI 2022).

About

Delaunay Triangulation Matching (DTM)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages