25 #ifndef _FIREVISION_MODELS_SHAPE_LINE_H_ 26 #define _FIREVISION_MODELS_SHAPE_LINE_H_ 28 #include <fvmodels/shape/shapemodel.h> 29 #include <fvutils/base/roi.h> 30 #include <fvutils/base/types.h> 35 namespace firevision {
46 LineShape(
unsigned int roi_width,
unsigned int roi_height);
51 bool isClose(
unsigned int in_roi_x,
unsigned int in_roi_y);
54 void getPoints(
int *x1,
int *y1,
int *x2,
int *y2);
63 unsigned int roi_width;
64 unsigned int roi_height;
77 #endif // FIREVISION_MODELS_SHAPE_LINE_H__ Randomized Hough-Transform line model.
Hough-Transform line matcher.
void printToStream(std::ostream &stream)
Print line.
void getPoints(int *x1, int *y1, int *x2, int *y2)
Get two points that define the line.
void setMargin(unsigned int margin)
Set margin around shape.
bool isClose(unsigned int in_roi_x, unsigned int in_roi_y)
Check if the given point is close to the shape.
void calcPoints()
Calc points for line.
LineShape(unsigned int roi_width, unsigned int roi_height)
Constructor.