homog2d library
Functions
eigen_test.cpp File Reference
#include "homog2d.hpp"
#include <Eigen/LU>
Include dependency graph for eigen_test.cpp:

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
9 {
10  Homogr h (3,4); // translation
11 
12 
13 
14 using Eigen::MatrixXd;
15 
16  MatrixXd m(2,2);
17  m(0,0) = 3;
18  m(1,0) = 2.5;
19  m(0,1) = -1;
20  m(1,1) = m(1,0) + m(0,1);
21  std::cout << m << std::endl;
22 
23  auto m2 = m.inverse();
24  std::cout << m2 << std::endl;
25 }
Homogr_< HOMOG2D_INUMTYPE > Homogr
Default homography (3x3 matrix) type, uses double as numerical type.
Definition: homog2d.hpp:12382