Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

AprilTags::Segment Class Reference

Represents a line fit to a set of pixels whose gradients are similiar. More...

#include <Segment.h>


Detailed Description

Represents a line fit to a set of pixels whose gradients are similiar.

Definition at line 10 of file Segment.h.

List of all members.

Public Member Functions

 Segment ()
float getX0 () const
void setX0 (float newValue)
float getY0 () const
void setY0 (float newValue)
float getX1 () const
void setX1 (float newValue)
float getY1 () const
void setY1 (float newValue)
float getTheta () const
void setTheta (float newValue)
float getLength () const
void setLength (float newValue)
float segmentLength ()
 Returns the length of the Segment.
void printSegment ()
 Print endpoint coordinates of this segment.
int getId () const
 ID of Segment.

Public Attributes

std::vector< Segment * > children

Static Public Attributes

static int const minimumSegmentSize = 4
 Minimum number of pixels in a segment before we'll fit a line to it.
static float const minimumLineLength = 4
 In pixels. Calculated based on minimum plausible decoding size for Tag9 family.

Private Attributes

float x0
float y0
float x1
float y1
float theta
float length
int segmentId

Static Private Attributes

static int idCounter = 0

Constructor & Destructor Documentation

AprilTags::Segment::Segment (  ) 

Definition at line 8 of file Segment.cc.


Member Function Documentation

int AprilTags::Segment::getId (  )  const

ID of Segment.

Definition at line 42 of file Segment.h.

float AprilTags::Segment::getLength (  )  const

Definition at line 32 of file Segment.h.

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

float AprilTags::Segment::getTheta (  )  const

Definition at line 29 of file Segment.h.

Referenced by AprilTags::TagDetector::extractTags(), and AprilTags::Quad::search().

float AprilTags::Segment::getX0 (  )  const

Definition at line 17 of file Segment.h.

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

float AprilTags::Segment::getX1 (  )  const

Definition at line 23 of file Segment.h.

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

float AprilTags::Segment::getY0 (  )  const

Definition at line 20 of file Segment.h.

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

float AprilTags::Segment::getY1 (  )  const

Definition at line 26 of file Segment.h.

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

void AprilTags::Segment::printSegment (  ) 

Print endpoint coordinates of this segment.

Definition at line 15 of file Segment.cc.

float AprilTags::Segment::segmentLength (  ) 

Returns the length of the Segment.

Definition at line 11 of file Segment.cc.

void AprilTags::Segment::setLength ( float  newValue  ) 

Definition at line 33 of file Segment.h.

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

void AprilTags::Segment::setTheta ( float  newValue  ) 

Definition at line 30 of file Segment.h.

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

void AprilTags::Segment::setX0 ( float  newValue  ) 

Definition at line 18 of file Segment.h.

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

void AprilTags::Segment::setX1 ( float  newValue  ) 

Definition at line 24 of file Segment.h.

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

void AprilTags::Segment::setY0 ( float  newValue  ) 

Definition at line 21 of file Segment.h.

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

void AprilTags::Segment::setY1 ( float  newValue  ) 

Definition at line 27 of file Segment.h.

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


Member Data Documentation

int AprilTags::Segment::idCounter = 0 [static, private]

Definition at line 51 of file Segment.h.

Definition at line 49 of file Segment.h.

Referenced by getLength(), and setLength().

In pixels. Calculated based on minimum plausible decoding size for Tag9 family.

Definition at line 15 of file Segment.h.

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

Minimum number of pixels in a segment before we'll fit a line to it.

Definition at line 14 of file Segment.h.

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

Definition at line 50 of file Segment.h.

Referenced by getId().

Definition at line 48 of file Segment.h.

Referenced by getTheta(), and setTheta().

Definition at line 47 of file Segment.h.

Referenced by getX0(), printSegment(), segmentLength(), and setX0().

Definition at line 47 of file Segment.h.

Referenced by getX1(), printSegment(), segmentLength(), and setX1().

Definition at line 47 of file Segment.h.

Referenced by getY0(), printSegment(), segmentLength(), and setY0().

Definition at line 47 of file Segment.h.

Referenced by getY1(), printSegment(), segmentLength(), and setY1().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:19 2016 by Doxygen 1.6.3