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
- Eigen 3.3
- 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
- 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
- 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.)