Skip to content

Light-weight library to perform homography estimation with RANSAC from point, line or point-line correspondences

License

Notifications You must be signed in to change notification settings

rpautrat/homography_est

Repository files navigation

homography_est

Build

Light-weight Python bindings to perform homography estimation between two images with RANSAC from point, line or point-line correspondences. Based on RansacLib and developed by Iago Suarez, Viktor Larsson, and Rémi Pautrat.

Installation

This work relies on the following dependencies:

After installing these two dependencies, you can clone and install the homography estimation code:

git clone --recurse-submodules git@github.com:rpautrat/homography_est.git
cd homography_est
pip install -e .

Usage

Check the examples in run_hest_test.cc and run_hest_test.py to understand how to use the library. We provide the following Python functions:

  • ransac_point_homography: homography estimation from a minimal set of 4 points.
  • ransac_line_homography: homography estimation from a minimal set of 4 lines.
  • ransac_point_line_homography: homography estimation with hybrid RANSAC from minimal sets of 4 points or 4 lines.

We also give the option to estimate the homography in case of a pure rotation between the images. In this case, only 2 features are minimal.

About

Light-weight library to perform homography estimation with RANSAC from point, line or point-line correspondences

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published