25#ifndef _FIREVISION_MODELS_SHAPE_RHT_LINE_H_
26#define _FIREVISION_MODELS_SHAPE_RHT_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;
70 unsigned int nr_candidates = 40,
72 float angle_range = 2 * M_PI,
74 float min_votes_ratio = 0.2f,
81 return std::string(
"RhtLinesModel");
94 unsigned int RHT_NR_CANDIDATES;
95 float RHT_ANGLE_INCREMENT;
97 float RHT_ANGLE_RANGE;
104 float RHT_MIN_VOTES_RATIO;
106 unsigned int roi_width;
107 unsigned int roi_height;
Hough-Transform accumulator.
Randomized Hough-Transform line model.
RhtLinesModel(float max_time=0.005, int max_iter=1000, 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 RhtLinesModel instance.
int getShapeCount(void) const
Get number of shapes.
std::vector< LineShape > * getShapes()
Get shapes.
std::string getName(void) const
Get name of shape model.
int parseImage(unsigned char *buffer, ROI *roi)
Parse image for given ROI.
LineShape * getShape(int id) const
Get specific shape.
virtual ~RhtLinesModel(void)
Destructor.
LineShape * getMostLikelyShape(void) const
Get best candidate.