*Camera_Tag* represents information about a fiducial tag in a camera frame. More...
#include <Camera_Tag.hpp>
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. | |
Tag * | tag |
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 |
*Camera_Tag* represents information about a fiducial tag in a camera frame.
Definition at line 12 of file Camera_Tag.hpp.
Return a new *Camera_Tag* object.
Camera_Tag__new*() will return a new *Camera_Tag* object.
Definition at line 178 of file Camera_Tag.cpp.
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*.
camera_tag | is the *Camera_Tag* to be initialized. |
tag | is the fiducial tag. |
direction | is the direction that match the fiducial orientation. |
corners | are the 4 corners of the fiducial tag. |
debug_image | is 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*.
camera_tag1 | is the first *Camera_Tag* to compare. |
camera_tag2 | is the second *Camera_Tag* to compare. |
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.
double CameraTag::diagonal |
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.
double CameraTag::twist |
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.