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>
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;
Hough-Transform line matcher.
void printToStream(std::ostream &stream)
Print line.
void setMargin(unsigned int margin)
Set margin around shape.
LineShape(unsigned int roi_width, unsigned int roi_height)
Constructor.
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.
void getPoints(int *x1, int *y1, int *x2, int *y2)
Get two points that define the line.
Randomized Hough-Transform line model.