18 #ifndef __NVDSINFER_DBSCANCLUSTERING_HPP__
19 #define __NVDSINFER_DBSCANCLUSTERING_HPP__
25 #include <Eigen/Dense>
28 #pragma GCC diagnostic push
29 #pragma GCC diagnostic ignored "-Wunused-local-typedefs"
31 #pragma GCC diagnostic ignored "-Wmisleading-indentation"
34 #pragma GCC diagnostic ignored "-Wint-in-bool-context"
36 #include <Eigen/Dense>
37 #pragma GCC diagnostic pop
41 #include <nvdsinfer_dbscan.h>
61 float totalConfidence;
63 float maximumConfidence;
74 typedef Eigen::Matrix<int32_t, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> RowMatrixXi;
82 void re_allocate (
size_t num_detections);
87 void findNeighbors(int32_t boxIdx, int32_t inputSize,
float eps);
89 void joinNeighbors(int32_t boxDstIdx, int32_t boxSrcIdx);
91 std::unique_ptr<MatrixXf> m_distanceMatrix;
92 std::unique_ptr<RowMatrixXi> m_neighborListMatrix;
93 std::unique_ptr<MatrixXb> m_neighborshipMatrix;
94 std::vector<uint32_t> m_neighborCounts;
95 std::vector<int32_t> m_labels;
96 std::vector<bool> m_visited;
97 size_t m_maxProposals;
98 std::vector <ClusteredObject> m_clusteredObjects;