28 #ifndef _Aruco_CameraParameters_H 29 #define _Aruco_CameraParameters_H 30 #include <aruco/exports.h> 31 #include <opencv2/opencv.hpp> 58 CameraParameters(cv::Mat cameraMatrix,cv::Mat distorsionCoeff,cv::Size size)
throw(cv::Exception);
64 void setParams(cv::Mat cameraMatrix,cv::Mat distorsionCoeff,cv::Size size)
throw(cv::Exception);
67 CameraParameters(
const CameraParameters &CI) ;
72 return CameraMatrix.rows!=0 && CameraMatrix.cols!=0 && Distorsion.rows!=0 && Distorsion.cols!=0 && CamSize.width!=-1 && CamSize.height!=-1;
79 void readFromFile(
string path)
throw(cv::Exception);
82 void saveToFile(
string path,
bool inXML=
true)
throw(cv::Exception);
86 void readFromXMLFile(
string filePath)
throw(cv::Exception);
90 void resize(cv::Size size)
throw(cv::Exception);
95 static cv::Point3f getCameraLocation(cv::Mat Rvec,cv::Mat Tvec);
107 void glGetProjectionMatrix( cv::Size orgImgSize, cv::Size size,
double proj_matrix[16],
double gnear,
double gfar,
bool invert=
false )
throw(cv::Exception);
119 void OgreGetProjectionMatrix( cv::Size orgImgSize, cv::Size size,
double proj_matrix[16],
double gnear,
double gfar,
bool invert=
false )
throw(cv::Exception);
125 static void argConvGLcpara2(
double cparam[3][4],
int width,
int height,
double gnear,
double gfar,
double m[16],
bool invert )
throw(cv::Exception);
126 static int arParamDecompMat(
double source[3][4],
double cpara[3][4],
double trans[3][4] )
throw(cv::Exception);
127 static double norm(
double a,
double b,
double c );
128 static double dot(
double a1,
double a2,
double a3,
129 double b1,
double b2,
double b3 );
Parameters of the camera.
TFSIMD_FORCE_INLINE tfScalar dot(const Quaternion &q1, const Quaternion &q2)