|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
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>
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;
float totalConfidence
Total confidence of the members of the cluster.
friend void NvDsInferDBScanCluster(NvDsInferDBScanHandle handle, NvDsInferDBScanClusteringParams *params, NvDsInferObjectDetectionInfo *objects, size_t *numObjects)
Clusters an array of objects in place using specified clustering parameters.
friend void NvDsInferDBScanClusterHybrid(NvDsInferDBScanHandle handle, NvDsInferDBScanClusteringParams *params, NvDsInferObjectDetectionInfo *objects, size_t *numObjects)
Clusters an array of objects in place using specified clustering parameters.
BBox boxVariance
Variance of bounding boxes of the members of the cluster.
friend void NvDsInferDBScanDestroy(NvDsInferDBScanHandle handle)
Destroys a DBScan object clustering context.
Holds information about one parsed object from a detector's output.
Holds object clustering parameters required by DBSCAN.
BBox box
Bounding box of the detected object.
friend NvDsInferDBScanHandle NvDsInferDBScanCreate()
Creates a new DBScan object clustering context.
uint32_t numMembers
Number of members of the cluster.
float maximumConfidence
Maximum confidence of the members of the cluster.
Holds the bounding box co-ordindates.