#include <linesegment2d_detector.h>
Public Member Functions | |
bool | isSupportPoint (int idx) |
LineSegment () | |
constructor More... | |
unsigned int | nrSupportPoint () |
void | set (unsigned int idx0, unsigned int idx1, const std::vector< Point2D > &points) |
void | updatePoints (const std::vector< Point2D > &points) |
Public Member Functions inherited from tuw::LineSegment2D | |
double | angle () const |
double | closestPointLineSegmentRatio (const Point2D &p) const |
Point2D | closestPointTo (const Point2D &p) const |
double | distanceSqrTo (const Point2D &p, double &dx, double &dy) const |
double | distanceTo (const Point2D &p, double &dx, double &dy) const |
double | distanceTo (const Point2D &p) const |
const double | length () const |
const Line2D & | line () const |
LineSegment2D () | |
the lines endpoints More... | |
LineSegment2D (const LineSegment2D &l) | |
LineSegment2D (const Point2D &p0, const Point2D &p1) | |
LineSegment2D (const double &x0, const double &y0, const double &x1, const double &y1) | |
bool | operator== (const LineSegment2D &o) const |
comparison operator More... | |
const Point2D & | p0 () const |
const Point2D & | p1 () const |
Point2D | pc () const |
LineSegment2D & | set (const double &x0, const double &y0, const double &x1, const double &y1) |
LineSegment2D & | set (const Point2D &p0, const Point2D &p1) |
const double & | x0 () const |
const double & | x1 () const |
const double & | y0 () const |
const double & | y1 () const |
Public Member Functions inherited from tuw::Line2D | |
double & | a () |
const double & | a () const |
double & | b () |
const double & | b () const |
double & | c () |
const double & | c () const |
cv::Vec< double, 3 > & | cv () |
const cv::Vec< double, 3 > & | cv () const |
double | distanceTo (const double &x, const double &y) const |
double | distanceTo (const Point2D &p) const |
Point2D | intersection (const Line2D &l) const |
Line2D () | |
constructor More... | |
Line2D (const Line2D &l) | |
Line2D (cv::Vec< double, 3 > &l, bool normalize=true) | |
Line2D (const double &x0, const double &y0, const double &x1, const double &y1, bool normalize=true) | |
Line2D (const Point2D &pt1, const Point2D &pt2, bool normalize=true) | |
cv::Vec< double, 2 > | normal () const |
void | normalize () |
Point2D | pointOnLine (const double &x, const double &y) const |
Point2D | pointOnLine (const Point2D &p) const |
Line2D & | set (const double &x0, const double &y0, const double &x1, const double &y1, bool normalize=true) |
Line2D & | set (const Point2D &p0, const Point2D &p1, bool normalize=true) |
Polar2D | toPolar () const |
Public Attributes | |
unsigned int | id_ |
unsigned int | idx0_ |
unsigned int | idx1_ |
std::vector< Point2D > | points_ |
Additional Inherited Members | |
Protected Attributes inherited from tuw::LineSegment2D | |
Point2D | p0_ |
Point2D | p1_ |
An exdented line segment reprecentetion for the detection
Definition at line 42 of file linesegment2d_detector.h.
|
inline |
constructor
Definition at line 45 of file linesegment2d_detector.h.
bool LineSegment2DDetector::LineSegment::isSupportPoint | ( | int | idx | ) |
Definition at line 16 of file linesegment2d_detector.cpp.
unsigned int LineSegment2DDetector::LineSegment::nrSupportPoint | ( | ) |
Definition at line 23 of file linesegment2d_detector.cpp.
void LineSegment2DDetector::LineSegment::set | ( | unsigned int | idx0, |
unsigned int | idx1, | ||
const std::vector< Point2D > & | points | ||
) |
Definition at line 26 of file linesegment2d_detector.cpp.
void LineSegment2DDetector::LineSegment::updatePoints | ( | const std::vector< Point2D > & | points | ) |
Definition at line 7 of file linesegment2d_detector.cpp.
unsigned int tuw::LineSegment2DDetector::LineSegment::id_ |
Definition at line 50 of file linesegment2d_detector.h.
unsigned int tuw::LineSegment2DDetector::LineSegment::idx0_ |
Definition at line 51 of file linesegment2d_detector.h.
unsigned int tuw::LineSegment2DDetector::LineSegment::idx1_ |
Definition at line 51 of file linesegment2d_detector.h.
std::vector<Point2D> tuw::LineSegment2DDetector::LineSegment::points_ |
Definition at line 52 of file linesegment2d_detector.h.