25 #ifndef __FIREVISION_MODELS_SHAPE_HT_LINE_H_ 26 #define __FIREVISION_MODELS_SHAPE_HT_LINE_H_ 32 #include <fvutils/base/types.h> 33 #include <fvmodels/shape/line.h> 34 #include <fvmodels/shape/accumulators/ht_accum.h> 46 std::vector<LineShape> m_Lines;
66 HtLinesModel(
unsigned int nr_candidates = 40,
float angle_from = 0,
float angle_range= 2 * M_PI,
int r_scale = 1,
float min_votes_ratio = 0.2f,
int min_votes = -1);
69 std::string
getName(
void)
const {
return std::string(
"RhtLinesModel");}
78 unsigned int RHT_NR_CANDIDATES;
79 float RHT_ANGLE_INCREMENT;
81 float RHT_ANGLE_RANGE;
88 float RHT_MIN_VOTES_RATIO;
90 unsigned int roi_width;
91 unsigned int roi_height;
97 #endif // __FIREVISION_MODELS_SHAPE_HT_LINES_H_ Hough-Transform accumulator.
int getShapeCount(void) const
Get number of shapes.
virtual ~HtLinesModel(void)
Destructor.
LineShape * getShape(int id) const
Get specific shape.
Hough-Transform line matcher.
std::vector< LineShape > * getShapes()
Get all lines found.
HtLinesModel(unsigned int nr_candidates=40, float angle_from=0, float angle_range=2 *M_PI, int r_scale=1, float min_votes_ratio=0.2f, int min_votes=-1)
Creates a new HtLinesModel instance.
int parseImage(unsigned char *buffer, ROI *roi)
Parse image for given ROI.
LineShape * getMostLikelyShape(void) const
Get best candidate.
std::string getName(void) const
Get name of shape model.