Debian Codegraph @

cvd/nonmax_suppression.h

raw symbols SCIP
1 #ifndef CVD_NONMAX_SUPPRESSION_H
2 #define CVD_NONMAX_SUPPRESSION_H
3
4 #include <cvd/image_ref.h>
5 #include <utility>
6 #include <vector>
7
8 namespace CVD
9 {
10 /**Perform nonmaximal suppression on a set of features, in a 3 by 3 window.
11 The test is strict: a point must be greater than its neighbours.
12
13 @param corners The corner locations
14 @param scores The corners' scores
15 @param max_corners The locally maximal corners.
16 @ingroup gVision
17 */
18 void nonmax_suppression_strict(const std::vector<ImageRef>& corners, const std::vector<int>& scores, std::vector<ImageRef>& nmax_corners);
19 /**Perform nonmaximal suppression on a set of features, in a 3 by 3 window.
20 The test is non-strict: a point must be at least as large as its neighbours.
21
22 @param corners The corner locations
23 @param scores The corners' scores
24 @param max_corners The locally maximal corners.
25 @ingroup gVision
26 */
27 void nonmax_suppression(const std::vector<ImageRef>& corners, const std::vector<int>& scores, std::vector<ImageRef>& nmax_corners);
28
29 /**Perform nonmaximal suppression on a set of features, in a 3 by 3 window.
30 Non strict.
31
32 @param corners The corner locations
33 @param scores The corners' scores
34 @param max_corners The locally maximal corners, and their scores.
35 @ingroup gVision
36 */
37 void nonmax_suppression_with_scores(const std::vector<ImageRef>& corners, const std::vector<int>& socres, std::vector<std::pair<ImageRef, int>>& max_corners);
38
39 }
40
41 #endif