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");}
75 int parseImage(
unsigned char* buffer,
ROI *roi);
76 int getShapeCount(
void)
const;
78 LineShape* getMostLikelyShape(
void)
const;
79 std::vector< LineShape > * getShapes();
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.
Randomized Hough-Transform line model.
std::string getName(void) const
Get name of shape model.