|
libeblearn
|
A type of NMS that accumulates bounding boxes. More...
#include <nms.h>
Public Member Functions | |
| voting_nms (float threshold, float max_overlap, float max_hcenter_dist, float max_wcenter_dist, float pre_hfact, float pre_wfact, float post_hfact, float post_wfact, float woverh, std::ostream &out=std::cout, std::ostream &err=std::cerr) | |
| voting_nms (float threshold, float max_overlap, float max_hcenter_dist, float max_wcenter_dist, float pre_hfact, float pre_wfact, float post_hfact, float post_wfact, float woverh, float vote_max_overlap, float vote_max_hcd, float vote_max_wcd, std::ostream &out=std::cout, std::ostream &err=std::cerr) | |
| virtual | ~voting_nms () |
| Destructor. | |
| virtual string | describe () |
| Returns a string decribing this nms. | |
Protected Member Functions | |
| virtual void | process (bboxes &in, bboxes &out) |
| Apply nms on 'in' into 'out'. | |
| virtual void | vote_nms (bboxes &in, bboxes &out) |
| Voting nms. | |
| void | dfs (bboxes &bb, vector< bool > &explored, uint i, float match, float max_center_dist, bboxes &comp) |
| void | merge_votes (bboxes &bb) |
| Merge all boxes that vote for the same location. | |
| void | prune_votes (bboxes &in, bboxes &out) |
| Prune overlapping votes. | |
Protected Attributes | |
| nms * | tnms |
| Also call traditional nms if allocated. | |
A type of NMS that accumulates bounding boxes.
| ebl::voting_nms::voting_nms | ( | float | threshold, |
| float | max_overlap, | ||
| float | max_hcenter_dist, | ||
| float | max_wcenter_dist, | ||
| float | pre_hfact, | ||
| float | pre_wfact, | ||
| float | post_hfact, | ||
| float | post_wfact, | ||
| float | woverh, | ||
| std::ostream & | out = std::cout, |
||
| std::ostream & | err = std::cerr |
||
| ) |
Constructor for voting nms only. See nms() constructor for parameters descriptions.
| ebl::voting_nms::voting_nms | ( | float | threshold, |
| float | max_overlap, | ||
| float | max_hcenter_dist, | ||
| float | max_wcenter_dist, | ||
| float | pre_hfact, | ||
| float | pre_wfact, | ||
| float | post_hfact, | ||
| float | post_wfact, | ||
| float | woverh, | ||
| float | vote_max_overlap, | ||
| float | vote_max_hcd, | ||
| float | vote_max_wcd, | ||
| std::ostream & | out = std::cout, |
||
| std::ostream & | err = std::cerr |
||
| ) |
Constructor for voting nms followed by traditional nms. See nms() constructor for parameters descriptions.