25 #ifndef __FIREVISION_MODELS_SHAPE_LINE_H_ 26 #define __FIREVISION_MODELS_SHAPE_LINE_H_ 31 #include <fvutils/base/types.h> 32 #include <fvutils/base/roi.h> 33 #include <fvmodels/shape/shapemodel.h> 45 LineShape(
unsigned int roi_width,
unsigned int roi_height);
50 bool isClose(
unsigned int in_roi_x,
unsigned int in_roi_y);
53 void getPoints(
int *x1,
int *y1,
int *x2,
int *y2);
62 unsigned int roi_width;
63 unsigned int roi_height;
78 #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.