Skip to content

Calculates the 3x3 homography matrix from a given set of corresponding point pairs to transform between two points of view.

License

Notifications You must be signed in to change notification settings

Jakobimatrix/homography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homography

Calculates the 3x3 homography matrix from a given set of corresponding point pairs to transform between two points of view.

Please use clang-tidy if you want to contribute: easy installation

Dependencies:

  • Eigen 3.3

Features

  • calculate the 3x3 homography matrix useing different solver for linear Ax=b Problems provided by Eigen
  • Calculates the ''exact'' homography matrix when given 4 pairs of points
  • Estimates the homography matrix if given more than 4 pairs of points e.g. if the points on one plane are measurements with noise.
  • example usage is provided in include/homography/homography.hpp

Installation

  • Install Eigen
  • If you use CMake to build your project place this repro inside 'path' and use add_subdirectory(path/ homography) and target_link_libraries(your_lib homography_lib)
  • Or just include the header

Example

  • You kan find an simple example in example.cpp.
  • build it: ´g++ -std=c++17 example.cpp -o example_executable´
  • (if you use a c++ version prior to 17, thats ok, but there will be some warnings.)

About

Calculates the 3x3 homography matrix from a given set of corresponding point pairs to transform between two points of view.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published