Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

AprilTags::TagDetection Struct Reference

#include <TagDetection.h>


Detailed Description

Definition at line 11 of file TagDetection.h.

List of all members.

Public Member Functions

 TagDetection ()
 Constructor.
 TagDetection (int id)
 Constructor for manually creating tags in a world map.
AngSignPi getXYOrientation () const
 Orientation in the xy plane.
std::pair< float, floatinterpolate (float x, float y) const
 Interpolate point given (x,y) is in tag coordinate space from (-1,-1) to (1,1).
bool overlapsTooMuch (const TagDetection &other) const
 Used to eliminate redundant tags.

Public Attributes

bool good
 Is the detection good enough?
long long obsCode
 Observed code.
long long code
 Matched code.
int id
 What was the ID of the detected tag?
int hammingDistance
 The hamming distance between the detected code and the true code.
int rotation
 How many 90 degree rotations were required to align the code (internal use only).
std::pair< float, floatp [4]
std::pair< float, floatcxy
 Center of tag in pixel coordinates.
float observedPerimeter
 Measured in pixels, how long was the observed perimeter.
fmat::Matrix< 3, 3 > homography
 A 3x3 homography that computes pixel coordinates from tag-relative coordinates.
std::pair< float, floathxy
 The homography is relative to image center, whose coordinates are below.

Constructor & Destructor Documentation

AprilTags::TagDetection::TagDetection (  ) 

Constructor.

Definition at line 4 of file TagDetection.cc.

AprilTags::TagDetection::TagDetection ( int  id  ) 

Constructor for manually creating tags in a world map.

Definition at line 8 of file TagDetection.cc.


Member Function Documentation

AngSignPi AprilTags::TagDetection::getXYOrientation (  )  const

Orientation in the xy plane.

Definition at line 12 of file TagDetection.cc.

std::pair< float, float > AprilTags::TagDetection::interpolate ( float  x,
float  y 
) const

Interpolate point given (x,y) is in tag coordinate space from (-1,-1) to (1,1).

Definition at line 24 of file TagDetection.cc.

Referenced by AprilTags::TagDetector::extractTags().

bool AprilTags::TagDetection::overlapsTooMuch ( const TagDetection other  )  const

Used to eliminate redundant tags.

Definition at line 33 of file TagDetection.cc.

Referenced by AprilTags::TagDetector::extractTags().


Member Data Documentation

Matched code.

Definition at line 26 of file TagDetection.h.

Referenced by AprilTags::TagFamily::decode().

Center of tag in pixel coordinates.

Definition at line 45 of file TagDetection.h.

Referenced by AprilTags::TagDetector::extractTags().

Is the detection good enough?

Definition at line 20 of file TagDetection.h.

Referenced by AprilTags::TagFamily::decode(), and AprilTags::TagDetector::extractTags().

The hamming distance between the detected code and the true code.

Definition at line 32 of file TagDetection.h.

Referenced by AprilTags::TagFamily::decode(), and AprilTags::TagDetector::extractTags().

A 3x3 homography that computes pixel coordinates from tag-relative coordinates.

Definition at line 57 of file TagDetection.h.

Referenced by AprilTags::TagDetector::extractTags().

The homography is relative to image center, whose coordinates are below.

Definition at line 63 of file TagDetection.h.

Referenced by AprilTags::TagDetector::extractTags().

What was the ID of the detected tag?

Definition at line 29 of file TagDetection.h.

Referenced by AprilTags::TagFamily::decode(), and AprilTags::TagDetector::extractTags().

Observed code.

Definition at line 23 of file TagDetection.h.

Referenced by AprilTags::TagFamily::decode().

Measured in pixels, how long was the observed perimeter.

Observed perimeter excludes the inferred perimeter which is used to connect incomplete quads.

Definition at line 49 of file TagDetection.h.

Referenced by AprilTags::TagDetector::extractTags().

Fields below are filled in by TagDetector /////////////// Position (in fractional pixel coordinates) of the detection.

Definition at line 42 of file TagDetection.h.

Referenced by AprilTags::TagDetector::extractTags().

How many 90 degree rotations were required to align the code (internal use only).

Definition at line 35 of file TagDetection.h.

Referenced by AprilTags::TagFamily::decode(), and AprilTags::TagDetector::extractTags().


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

Tekkotsu v5.1CVS
Generated Fri Mar 16 05:27:34 2012 by Doxygen 1.6.3