Represents a line fit to a set of pixels whose gradients are similiar. More...
#include <Segment.h>
Public Member Functions | |
int | getId () const |
ID of Segment. | |
float | getLength () const |
float | getTheta () const |
float | getX0 () const |
float | getX1 () const |
float | getY0 () const |
float | getY1 () const |
void | printSegment () |
Print endpoint coordinates of this segment. | |
Segment () | |
float | segmentLength () |
Returns the length of the Segment. | |
void | setLength (float newValue) |
void | setTheta (float newValue) |
void | setX0 (float newValue) |
void | setX1 (float newValue) |
void | setY0 (float newValue) |
void | setY1 (float newValue) |
Public Attributes | |
std::vector< Segment * > | children |
Static Public Attributes | |
static float const | minimumLineLength = 4 |
In pixels. Calculated based on minimum plausible decoding size for Tag9 family. | |
static int const | minimumSegmentSize = 4 |
Minimum number of pixels in a segment before we'll fit a line to it. | |
Private Attributes | |
float | length |
int | segmentId |
float | theta |
float | x0 |
float | x1 |
float | y0 |
float | y1 |
Static Private Attributes | |
static int | idCounter = 0 |
Represents a line fit to a set of pixels whose gradients are similiar.
Definition at line 8 of file Segment.cc.
int AprilTags::Segment::getId | ( | ) | const [inline] |
float AprilTags::Segment::getLength | ( | ) | const [inline] |
float AprilTags::Segment::getTheta | ( | ) | const [inline] |
float AprilTags::Segment::getX0 | ( | ) | const [inline] |
float AprilTags::Segment::getX1 | ( | ) | const [inline] |
float AprilTags::Segment::getY0 | ( | ) | const [inline] |
float AprilTags::Segment::getY1 | ( | ) | const [inline] |
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 | ) | [inline] |
void AprilTags::Segment::setTheta | ( | float | newValue | ) | [inline] |
void AprilTags::Segment::setX0 | ( | float | newValue | ) | [inline] |
void AprilTags::Segment::setX1 | ( | float | newValue | ) | [inline] |
void AprilTags::Segment::setY0 | ( | float | newValue | ) | [inline] |
void AprilTags::Segment::setY1 | ( | float | newValue | ) | [inline] |
std::vector<Segment*> AprilTags::Segment::children |
int AprilTags::Segment::idCounter = 0 [static, private] |
float AprilTags::Segment::length [private] |
const float AprilTags::Segment::minimumLineLength = 4 [static] |
int const AprilTags::Segment::minimumSegmentSize = 4 [static] |
int AprilTags::Segment::segmentId [private] |
float AprilTags::Segment::theta [private] |
float AprilTags::Segment::x0 [private] |
float AprilTags::Segment::x1 [private] |
float AprilTags::Segment::y0 [private] |
float AprilTags::Segment::y1 [private] |