Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
CameraTag Class Reference

*Camera_Tag* represents information about a fiducial tag in a camera frame. More...

#include <Camera_Tag.hpp>

List of all members.

Public Member Functions

 CameraTag ()
 Return a new *Camera_Tag* object.
void initialize (Tag *tag, unsigned int direction, CV_Point2D32F_Vector corners, CV_Image debug_image)
 Initializes *camara_tag* from *tag_id*, *direction*, and *corners*.
void operator delete (void *)
void * operator new (size_t sz)

Static Public Member Functions

static bool less (CameraTag *tag1, CameraTag *tag2)
 Return the sort order of *camera_tag1* to *camera_tag2*.

Public Attributes

double diagonal
 The average diagonal of the tag measured in camera pixels.
unsigned int direction
 The direction (0-3) that matched the fiducial tag.
Tagtag
 The tag associated with *id*.
double twist
 The amount the fiducial tag is twisted from the camera x axis measured in radians.
double x
 The X coordinate of the fiducial tag center in camera pixels.
double y
 The Y coordinate of the fiducial tag center in camera pixels.

Static Public Attributes

static std::vector< CameraTag * > free_pool

Detailed Description

*Camera_Tag* represents information about a fiducial tag in a camera frame.

Definition at line 12 of file Camera_Tag.hpp.


Constructor & Destructor Documentation

Return a new *Camera_Tag* object.

Returns:
new *Camera_Tag* object.

Camera_Tag__new*() will return a new *Camera_Tag* object.

Definition at line 178 of file Camera_Tag.cpp.


Member Function Documentation

void CameraTag::initialize ( Tag tag,
unsigned int  direction,
CV_Point2D32F_Vector  corners,
CV_Image  debug_image 
)

Initializes *camara_tag* from *tag_id*, *direction*, and *corners*.

Parameters:
camera_tagis the *Camera_Tag* to be initialized.
tagis the fiducial tag.
directionis the direction that match the fiducial orientation.
cornersare the 4 corners of the fiducial tag.
debug_imageis a *CV_Image* that is used for debugging.

Camera_Tag__initialize*() will initialize *camera_tag*. *tag_id* is the fiduical tag identifier. *direction* specifies which of the four fiducial orientations passed the FEC (forward Error Correction) and CRC (Cyclic Redundancy Check) tests to extract the *tag_id*. camara_tag* has its diagonal, twist and center X/Y coordiante filled from this routine.

Definition at line 35 of file Camera_Tag.cpp.

bool CameraTag::less ( CameraTag tag1,
CameraTag tag2 
) [static]

Return the sort order of *camera_tag1* to *camera_tag2*.

Parameters:
camera_tag1is the first *Camera_Tag* to compare.
camera_tag2is the second *Camera_Tag* to compare.
Returns:
-1, 0, or 1 depending upon sort order.

Camera_Tag__compare*() will return the -1 if *camera_tag1* is less than *camera_tag2*, 0 if they are equal, and 1 otherwise.

Definition at line 17 of file Camera_Tag.cpp.

void CameraTag::operator delete ( void *  p)

Definition at line 200 of file Camera_Tag.cpp.

void * CameraTag::operator new ( size_t  sz)

Definition at line 185 of file Camera_Tag.cpp.


Member Data Documentation

The average diagonal of the tag measured in camera pixels.

Definition at line 15 of file Camera_Tag.hpp.

unsigned int CameraTag::direction

The direction (0-3) that matched the fiducial tag.

Definition at line 18 of file Camera_Tag.hpp.

std::vector< CameraTag * > CameraTag::free_pool [static]

Definition at line 33 of file Camera_Tag.hpp.

The tag associated with *id*.

Definition at line 21 of file Camera_Tag.hpp.

The amount the fiducial tag is twisted from the camera x axis measured in radians.

Definition at line 25 of file Camera_Tag.hpp.

double CameraTag::x

The X coordinate of the fiducial tag center in camera pixels.

Definition at line 28 of file Camera_Tag.hpp.

double CameraTag::y

The Y coordinate of the fiducial tag center in camera pixels.

Definition at line 31 of file Camera_Tag.hpp.


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


fiducial_lib
Author(s): Wayne Gramlich
autogenerated on Thu Jun 6 2019 18:08:04