Parameters of the camera. More...
#include <cameraparameters.h>
Public Member Functions | |
CameraParameters () | |
CameraParameters (cv::Mat cameraMatrix, cv::Mat distorsionCoeff, cv::Size size) throw (cv::Exception) | |
CameraParameters (const CameraParameters &CI) | |
bool | isValid () const |
CameraParameters & | operator= (const CameraParameters &CI) |
void | readFromFile (string path) throw (cv::Exception) |
void | readFromXMLFile (string filePath) throw (cv::Exception) |
void | resize (cv::Size size) throw (cv::Exception) |
void | saveToFile (string path) throw (cv::Exception) |
Static Public Member Functions | |
static cv::Point3f | getCameraLocation (cv::Mat Rvec, cv::Mat Tvec) |
Public Attributes | |
cv::Mat | CameraMatrix |
cv::Size | CamSize |
cv::Mat | Distorsion |
Parameters of the camera.
Definition at line 11 of file cameraparameters.h.
Empty constructor
Definition at line 9 of file cameraparameters.cpp.
aruco::CameraParameters::CameraParameters | ( | cv::Mat | cameraMatrix, |
cv::Mat | distorsionCoeff, | ||
cv::Size | size | ||
) | throw (cv::Exception) |
Creates the object from the info passed
cameraMatrix | 3x3 matrix (fx 0 cx, 0 fy cy, 0 0 1) |
distorsionCoeff | 4x1 matrix (k1,k2,p1,p2) |
size | image size |
Definition at line 19 of file cameraparameters.cpp.
aruco::CameraParameters::CameraParameters | ( | const CameraParameters & | CI | ) |
Copy constructor
Definition at line 30 of file cameraparameters.cpp.
cv::Point3f aruco::CameraParameters::getCameraLocation | ( | cv::Mat | Rvec, |
cv::Mat | Tvec | ||
) | [static] |
Returns the location of the camera in the reference system given by the rotation and translation vectors passed NOT TESTED
Definition at line 46 of file cameraparameters.cpp.
bool aruco::CameraParameters::isValid | ( | ) | const [inline] |
Indicates whether this object is valid
Definition at line 37 of file cameraparameters.h.
CameraParameters & aruco::CameraParameters::operator= | ( | const CameraParameters & | CI | ) |
Assign operator
Definition at line 38 of file cameraparameters.cpp.
void aruco::CameraParameters::readFromFile | ( | string | path | ) | throw (cv::Exception) |
Reads the camera parameters from a file generated using saveToFile.
Reads the camera parameters from file
Definition at line 67 of file cameraparameters.cpp.
void aruco::CameraParameters::readFromXMLFile | ( | string | filePath | ) | throw (cv::Exception) |
Reads from a YAML file generated with the opencv2.2 calibration utility
Definition at line 137 of file cameraparameters.cpp.
void aruco::CameraParameters::resize | ( | cv::Size | size | ) | throw (cv::Exception) |
Adjust the parameters to the size of the image indicated
Definition at line 117 of file cameraparameters.cpp.
void aruco::CameraParameters::saveToFile | ( | string | path | ) | throw (cv::Exception) |
Saves this to a file
Definition at line 97 of file cameraparameters.cpp.
Definition at line 16 of file cameraparameters.h.
cv::Size aruco::CameraParameters::CamSize |
Definition at line 20 of file cameraparameters.h.
Definition at line 18 of file cameraparameters.h.