All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions | Static Public Member Functions | Public Attributes
aruco::CameraParameters Class Reference

Parameters of the camera. More...

#include <cameraparameters.h>

List of all members.

Public Member Functions

 CameraParameters ()
 CameraParameters (cv::Mat cameraMatrix, cv::Mat distorsionCoeff, cv::Size size) throw (cv::Exception)
 CameraParameters (const CameraParameters &CI)
bool isValid () const
CameraParametersoperator= (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

Detailed Description

Parameters of the camera.

Definition at line 11 of file cameraparameters.h.


Constructor & Destructor Documentation

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

Parameters:
cameraMatrix3x3 matrix (fx 0 cx, 0 fy cy, 0 0 1)
distorsionCoeff4x1 matrix (k1,k2,p1,p2)
sizeimage size

Definition at line 19 of file cameraparameters.cpp.

Copy constructor

Definition at line 30 of file cameraparameters.cpp.


Member Function Documentation

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.

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.


Member Data Documentation

Definition at line 16 of file cameraparameters.h.

Definition at line 20 of file cameraparameters.h.

Definition at line 18 of file cameraparameters.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


aruco_pose
Author(s): Julian Brunner
autogenerated on Thu May 23 2013 12:15:46