Main Page | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

ARLib::Detection::ARBoundingBox Class Reference

Represents a bounding box around a detected marker in the image. More...

#include <arboundingbox.h>

Inheritance diagram for ARLib::Detection::ARBoundingBox:

ARLib::Utility::ARRect< T > List of all members.

Public Member Functions

 ARBoundingBox ()
 Default constructor.
void Clear ()
 Reset the contents of the bounding box.
void CalcCorners (int *edgesLeft, int *edgesTop, int *edgesRight, int *edgesBottom)
 Calculates the four corners from the supplied edges.
void Calc2DTo2DProjection ()
 Calculates the 2D to 2D projection transformation.
double * Get2DTo2DProjectionMatrix ()
 Returns the 2D to 2D projection matrix.

Public Attributes

double mat2D2DProj [3][3]
 The 3x3 matrix that stores the 2D to 2D projection tranformation.
double fu
 Camera focal length for u.
double fv
 Camera focal length for u.

Detailed Description

Represents a bounding box around a detected marker in the image.


Member Function Documentation

void ARBoundingBox::Calc2DTo2DProjection  ) 
 

Calculates the 2D to 2D projection transformation.

The calculate 3x3 matrix can be used to calculate x and y coordinates for a quadrialateral by specifying u and v coordinates. The is matrix is commonly used in texture mapping where a square image in transformed to a quadrilateral.

void ARBoundingBox::CalcCorners int *  edgesLeft,
int *  edgesTop,
int *  edgesRight,
int *  edgesBottom
 

Calculates the four corners from the supplied edges.

The four corners are the potential markers corners within the bounding box region.

double* ARLib::Detection::ARBoundingBox::Get2DTo2DProjectionMatrix  )  [inline]
 

Returns the 2D to 2D projection matrix.

Valid value will only be returned if the Calc2DTo2DProjection function has already been called.

Returns:
A double pointer to the first element in the 3x3 array.


The documentation for this class was generated from the following files:
Generated on Wed Aug 31 18:01:39 2005 for ARLib by  doxygen 1.3.9.1