25 #ifndef __FIREVISION_MODELS_SHAPE_RHT_LINE_H_ 26 #define __FIREVISION_MODELS_SHAPE_RHT_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;
71 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);
74 std::string
getName(
void)
const {
return std::string(
"RhtLinesModel");}
86 unsigned int RHT_NR_CANDIDATES;
87 float RHT_ANGLE_INCREMENT;
89 float RHT_ANGLE_RANGE;
96 float RHT_MIN_VOTES_RATIO;
98 unsigned int roi_width;
99 unsigned int roi_height;
111 #endif // __FIREVISION_MODELS_SHAPE_RHT_LINES_H_ Hough-Transform accumulator.
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.
LineShape * getShape(int id) const
Get specific shape.
int parseImage(unsigned char *buffer, ROI *roi)
Parse image for given ROI.
Randomized Hough-Transform line model.
std::vector< LineShape > * getShapes()
Get shapes.
int getShapeCount(void) const
Get number of shapes.
std::string getName(void) const
Get name of shape model.
LineShape * getMostLikelyShape(void) const
Get best candidate.
virtual ~RhtLinesModel(void)
Destructor.