Defines the Clusterer module for performing DBSCAN clusterer on bounding boxes.
◆ dwClustererParams
Data Fields |
float32_t |
epsilon |
Maximum distance from the core box to be considered within a region. Default value is 0.4. |
uint32_t |
maxSampleCount |
Maximum number of samples that will be given as input. Default value is 100. |
uint32_t |
minSamples |
Minimum number of samples required to form a dense region. minSamples and minSumOfConfidences are checked conjunctively. Default value is 3.
|
float32_t |
minSumOfWeights |
Minimum sum of weights required to form a dense region. minSamples and minSumOfWeights are checked conjunctively. Default value is 0.
|
◆ dwClustererHandle_t
Handle to a Clusterer.
Definition at line 74 of file Clusterer.h.
◆ dwClusterer_bindInput()
Binds the input for clusterer.
- Parameters
-
[in] | boxes | Pointer to list where boxes are stored. |
[in] | weights | Pointer to list where corresponding weights are stored. |
[in] | boxesCount | Pointer to the number of input boxes |
[in] | obj | Specifies the Clusterer handle. |
- Returns
- DW_INVALID_ARGUMENT if any of the arguments is NULL DW_SUCCESS
- API Group
- Init: Yes
- Runtime: Yes
- De-Init: Yes
◆ dwClusterer_bindOutput()
Bind the ouput of the clusterer to list of cluster labels.
- Parameters
-
clusterLabels | Pointer to a list to store cluster label for each input bounding box at the same index. Label values are in [-1, clusterCount) where -1 means the corresponding sample does not belong to any cluster. |
clusterLabelsCount | Pointer to store the number of cluster labels. |
clusterCount | Pointer to store the number of clusters. |
obj | Specifies the Clusterer handle. |
- Returns
- DW_INVALID_ARGUMENT if any of the arguments is NULL DW_SUCCESS
- API Group
- Init: Yes
- Runtime: Yes
- De-Init: Yes
◆ dwClusterer_initialize()
Initializes a Clusterer module.
- Parameters
-
[out] | obj | A pointer to the Clusterer handle for the created module. |
[in] | clustererParams | Clusterer parameters. |
[in] | ctx | Specifies the handle to the context under which the Clusterer module is created. |
- Note
- Clusterer parameters must be initialized using dwClusterer_initParams before modifying.
- Returns
- DW_INVALID_ARGUMENT if clusterer handle is NULL or clustererParams is invalid.
DW_SUCCESS
- API Group
- Init: Yes
- Runtime: No
- De-Init: No
◆ dwClusterer_initParams()
Initializes Clusterer parameters with default values.
- Parameters
-
[out] | clustererParams | Clusterer parameters. |
- Returns
- DW_INVALID_ARGUMENT if parameters are NULL.
DW_SUCCESS
- API Group
- Init: Yes
- Runtime: No
- De-Init: No
◆ dwClusterer_process()
Runs DBScan clusterer on given bounding boxes and returns labels for each bounding box in the same order.
- Parameters
-
[in] | obj | Specifies the Clusterer handle. |
- Note
- This method requires that the input and output have already been provided by calling bindInput() and bindOutput().
- Returns
- DW_INVALID_ARGUMENT if clusterer handle is NULL.
DW_SUCCESS
- API Group
- Init: Yes
- Runtime: Yes
- De-Init: Yes
◆ dwClusterer_release()
Releases the Clusterer module.
- Parameters
-
[in] | obj | Specifies the Clusterer handle to release. |
- Returns
- DW_INVALID_ARGUMENT if clusterer handle is NULL.
DW_SUCCESS.
- Note
- This method renders the handle unusable.
- API Group
- Init: Yes
- Runtime: No
- De-Init: Yes
◆ dwClusterer_reset()
Resets the Clusterer module.
- Parameters
-
[in] | obj | Specifies the Clusterer handle to reset. |
- Returns
- DW_INVALID_ARGUMENT if clusterer handle is NULL.
DW_SUCCESS.
- API Group
- Init: Yes
- Runtime: Yes
- De-Init: Yes