#include <opencv/cv.h>
Go to the source code of this file.
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
2 fx fy cx cy k1 k2 p1 p2 width height 1
- Parameters
-
TheIntrinsicFile | path to the file with the info |
TheIntriscCameraMatrix | output matrix with the intrinsics |
TheDistorsionCameraParams | output vector with distorsion params |
size | of 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.