47 bool Init(
int img_w,
int img_h,
float d_r,
float d_theta);
54 bool ImageVote(
const std::vector<int>& image,
bool with_distribute);
60 void PointVote(
int x,
int y,
bool with_distribute);
62 void PointVote(
int pos,
bool with_distribute);
71 bool GetLines(
int min_pt_num,
int r_neibor,
int theta_neibor,
72 bool with_distribute, std::vector<HoughLine>* lines)
const;
83 inline std::string
name()
const {
return "HoughTransfer"; }
87 inline const std::vector<int>&
get_vote_map()
const {
return vote_map_; }
89 return distribute_map_;
92 inline float get_d_r()
const {
return d_r_; }
102 bool CheckPrepared()
const;
104 void GetMaxVotes(
int min_pt_num,
int r_neibor,
int theta_neibor,
int r_step,
105 int theta_step, std::set<int>* max_vote_lines)
const;
107 bool VotePosToHoughLine(
int vote_pos,
bool with_distribute,
117 int vote_reserve_size_;
118 std::vector<int> vote_map_;
119 std::vector<std::vector<int>> query_map_;
120 std::vector<std::vector<int>> distribute_map_;
bool ImageVote(const std::vector< int > &image, bool with_distribute)
unsigned int MemoryConsume() const
bool Init(int img_w, int img_h, float d_r, float d_theta)
int get_theta_size() const
const std::vector< int > & get_vote_map() const
void ResetMaps(bool with_distribute)
bool GetLines(int min_pt_num, int r_neibor, int theta_neibor, bool with_distribute, std::vector< HoughLine > *lines) const
void PointVote(int x, int y, bool with_distribute)
const std::vector< std::vector< int > > & get_distribute_map() const
float get_d_theta() const