25#ifndef _FIREVISION_MODELS_SHAPE_HT_LINE_H_
26#define _FIREVISION_MODELS_SHAPE_HT_LINE_H_
28#include <fvmodels/shape/accumulators/ht_accum.h>
29#include <fvmodels/shape/line.h>
30#include <fvutils/base/types.h>
43 std::vector<LineShape> m_Lines;
49 float angle_range = 2 * M_PI,
51 float min_votes_ratio = 0.2f,
58 return std::string(
"RhtLinesModel");
67 unsigned int RHT_NR_CANDIDATES;
68 float RHT_ANGLE_INCREMENT;
70 float RHT_ANGLE_RANGE;
77 float RHT_MIN_VOTES_RATIO;
79 unsigned int roi_width;
80 unsigned int roi_height;
Hough-Transform line matcher.
virtual ~HtLinesModel(void)
Destructor.
LineShape * getMostLikelyShape(void) const
Get best candidate.
LineShape * getShape(int id) const
Get specific shape.
std::string getName(void) const
Get name of shape model.
int getShapeCount(void) const
Get number of shapes.
int parseImage(unsigned char *buffer, ROI *roi)
Parse image for given ROI.
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)
Constructor.
std::vector< LineShape > * getShapes()
Get all lines found.
Hough-Transform accumulator.