Functions
common.h File Reference
#include <opencv/cv.h>
Include dependency graph for common.h:

Go to the source code of this file.

Functions

bool readIntrinsicFile (string TheIntrinsicFile, Mat &TheIntriscCameraMatrix, Mat &TheDistorsionCameraParams, Size size)
 

Function Documentation

bool readIntrinsicFile ( string  TheIntrinsicFile,
Mat &  TheIntriscCameraMatrix,
Mat &  TheDistorsionCameraParams,
Size  size 
)

This function reads the matrix intrinsics and the distorsion coefficients from a file. The format of the file is

1 # comments
2 fx fy cx cy k1 k2 p1 p2 width height 1
Parameters
TheIntrinsicFilepath to the file with the info
TheIntriscCameraMatrixoutput matrix with the intrinsics
TheDistorsionCameraParamsoutput vector with distorsion params
sizeof the images captured. Note that the images you are using might be different from these employed for calibration (which are in the file). If so, the intrinsic must be adapted properly. That is why you must pass here the size of the images you are employing
Returns
true if params are readed properly

Definition at line 46 of file common.h.



tuw_aruco
Author(s): Lukas Pfeifhofer
autogenerated on Mon Jun 10 2019 15:41:03