Class LineSegment2DDetector

Nested Relationships

Nested Types

Class Documentation

class LineSegment2DDetector

class to detect lines in 2D points base on a split and merge

Public Functions

LineSegment2DDetector()
void start(const std::vector<Point2D> &points)
std::vector<LineSegment2D> &start(const std::vector<Point2D> &points, std::vector<LineSegment2D> &detected_segments)
const std::vector<LineSegment> &result()

Public Members

LineSegment2DDetectorParameter config_
class LineSegment : public tuw::LineSegment2D

An exdented line segment reprecentetion for the detection

Public Functions

inline LineSegment()

constructor

void set(unsigned int idx0, unsigned int idx1, const std::vector<Point2D> &points)
void updatePoints(const std::vector<Point2D> &points)
bool isSupportPoint(int idx)
unsigned int nrSupportPoint()

Public Members

unsigned int id_
unsigned int idx0_
unsigned int idx1_
std::vector<Point2D> points_