Fawkes API  Fawkes Development Version
firevision::CCDCalibration Class Reference

A Calibration matrix for a ccd camera. More...

#include <>>

Inheritance diagram for firevision::CCDCalibration:

Public Member Functions

 CCDCalibration (float ax, float ay, float x0, float y0)
 Constructor. More...
 
 CCDCalibration (float hor_fov, unsigned int img_width, unsigned int img_height)
 Constructor. More...
 
 CCDCalibration (const CCDCalibration &cp)
 Copy constructor. More...
 
virtual ~CCDCalibration ()
 Destructor. More...
 
- Public Member Functions inherited from firevision::Calibration
 Calibration (const Calibration &cal)
 Copy Constructor. More...
 
 Calibration (const fawkes::Matrix &k)
 Constructor. More...
 
virtual ~Calibration ()
 Destructor. More...
 
Matrix K () const
 Calibration getter. More...
 
- Public Member Functions inherited from fawkes::Matrix
 Matrix (unsigned int num_rows=0, unsigned int num_cols=0, float *data=0, bool manage_own_memory=true)
 Constructor. More...
 
 Matrix (const Matrix &tbc)
 Copy-constructor. More...
 
 ~Matrix ()
 Destructor. More...
 
void size (unsigned int &num_rows, unsigned int &num_cols) const
 Determines the dimensions of the matrix. More...
 
unsigned int num_rows () const
 Return the number of rows in the Matrix. More...
 
unsigned int num_cols () const
 Return the number of columns in the Matrix. More...
 
Matrix & id ()
 Sets the diagonal elements to 1.0 and all other to 0.0. More...
 
Matrix & transpose ()
 Transposes the matrix. More...
 
Matrix get_transpose () const
 Computes a matrix that is the transposed of this matrix. More...
 
Matrix & invert ()
 Inverts the matrix. More...
 
Matrix get_inverse () const
 Computes a matrix that is the inverse of this matrix. More...
 
float det () const
 Computes the determinant of the matrix. More...
 
const float * get_data () const
 Returns the const data pointer. More...
 
float * get_data ()
 Returns the data pointer. More...
 
Matrix get_submatrix (unsigned int row, unsigned int col, unsigned int num_rows, unsigned int num_cols) const
 Returns a submatrix of the matrix. More...
 
void overlay (unsigned int row, unsigned int col, const Matrix &m)
 Overlays another matrix over this matrix. More...
 
float operator() (unsigned int row, unsigned int col) const
 (Read-only) Access-operator. More...
 
float & operator() (unsigned int row, unsigned int col)
 (RW) Access operator. More...
 
Matrix & operator= (const Matrix &rhs)
 Assignment operator. More...
 
Matrix operator* (const Matrix &rhs) const
 Matrix multiplication operator. More...
 
Matrix & operator*= (const Matrix &rhs)
 Combined matrix-multipliation and assignement operator. More...
 
Vector operator* (const Vector &cv) const
 Multiply the matrix with given vector. More...
 
Matrix operator* (const float &f) const
 Mulitply every element of the matrix with the given scalar. More...
 
Matrix & operator*= (const float &f)
 Combined scalar multiplication and assignment operator. More...
 
Matrix operator/ (const float &f) const
 Divide every element of the matrix with the given scalar. More...
 
Matrix & operator/= (const float &f)
 Combined scalar division and assignment operator. More...
 
Matrix operator+ (const Matrix &rhs) const
 Addition operator. More...
 
Matrix & operator+= (const Matrix &rhs)
 Add-assign operator. More...
 
Matrix operator- (const Matrix &rhs) const
 Subtraction operator. More...
 
Matrix & operator-= (const Matrix &rhs)
 Subtract-assign operator. More...
 
bool operator== (const Matrix &rhs) const
 Comparison operator. More...
 
void print_info (const char *name=0, const char *col_sep=0, const char *row_sep=0) const
 Print matrix to standard out. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from fawkes::Matrix
static Matrix get_id (unsigned int size, float *data_buffer=0)
 Creates a quadratic matrix with dimension size and sets the diagonal elements to 1.0. More...
 
static Matrix get_diag (unsigned int size, float value, float *data_buffer=0)
 Creates a quadratic matrix with dimension size and sets the diagonal elements to value. More...
 
- Protected Member Functions inherited from firevision::Calibration
 Calibration ()
 Hidden default constructor. More...
 
Calibration & K (const fawkes::Matrix &k)
 Sets the calibration matrix. More...
 

Detailed Description

A Calibration matrix for a ccd camera.

Author
Christof Rath

Definition at line 34 of file ccd_calibration.h.

Constructor & Destructor Documentation

firevision::CCDCalibration::CCDCalibration ( float  ax,
float  ay,
float  x0,
float  y0 
)

Constructor.

Parameters
axis the scale factor in the x-coordinate direction
ayis the scale factor in the y-coordinate direction
x0is the x-coordinate of the principal point
y0is the y-coordinate of the principal point

Definition at line 43 of file ccd_calibration.cpp.

References firevision::Calibration::K(), and fawkes::Matrix::Matrix().

firevision::CCDCalibration::CCDCalibration ( float  hor_fov,
unsigned int  img_width,
unsigned int  img_height 
)

Constructor.

Parameters
hor_fovhorizontal field of view [rad]
img_widthwidth of the image [px]
img_heightheight of the image [px]

Definition at line 62 of file ccd_calibration.cpp.

References firevision::Calibration::K(), and fawkes::Matrix::Matrix().

firevision::CCDCalibration::CCDCalibration ( const CCDCalibration &  cp)

Copy constructor.

Parameters
cpthe CCDCalibration to copy

Definition at line 82 of file ccd_calibration.cpp.

References firevision::Calibration::K().

firevision::CCDCalibration::~CCDCalibration ( )
virtual

Destructor.

Definition at line 90 of file ccd_calibration.cpp.


The documentation for this class was generated from the following files: