Blame view

include/transformations.h 697 Bytes
b0bb08d1c   tristan   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  #ifndef TRANSFORMATIONS_H
  #define TRANSFORMATIONS_H
  
  /*!
      \defgroup transformations Transformations
      \ingroup camera_model Camera Model
      \brief Different definitions for rotations and translations
  */
  ///@{
  ///
  
  
  #include <stdio.h>
  #include <iostream>
  #include <opencv2/opencv.hpp>
  
  #include <cstdlib>
  #include <cmath>
  
  #ifndef PI
  #define PI       3.141592653589793238462643383279502884L
  #endif
  
  //! Construction and decomprosition of rotation matrices
  namespace rotmat{
      void decomposeEulerZYZ(const cv::Mat & R, double & t1, double & rho, double & t2);
  
      cv::Mat fromCameraMatrixAffine(const cv::Mat & P);
      cv::Mat fromEulerZYZ(double t1, double rho, double t2);
  }
  ///@}
  #endif