|
|
NVIDIA DriveOS Linux SDK API Reference
|
7.2.5.0 Early Access Release
|
Go to the documentation of this file.
29 #ifndef DW_IMAGEPROCESSING_FEATUREDETECTOR_FEATUREDETECTOR_H_
30 #define DW_IMAGEPROCESSING_FEATUREDETECTOR_FEATUREDETECTOR_H_
40 #ifdef DW_SDK_BUILD_PVA
41 #include <cupva_host_scheduling.h>
222 DW_DEPRECATED(
"WARNING: will be removed in the next major release")
230 DW_DEPRECATED("WARNING: will be removed in the next major release")
293 cudaStream_t const cudaStream,
353 const uint32_t maskStrideBytes,
354 const uint32_t maskWidth,
355 const uint32_t maskHeight,
398 const
float32_t* d_normalizedCrossCorrelation,
441 const
float32_t* d_normalizedCrossCorrelation,
476 const
float32_t* d_normalizedCrossCorrelation,
510 const
float32_t* d_normalizedCrossCorrelation,
524 DW_DEPRECATED("WARNING: will be removed in the next major release, validTrackedCount pointer can be read directly from
dwFeatureArray")
689 #endif // DW_IMAGEPROCESSING_FEATUREDETECTOR_FEATUREDETECTOR_H_
float32_t gaussianMaskCenterX
for DW_FEATURE2D_DETECTOR_TYPE_EX only Ignored when not using DW_FEATURE2D_SELECTION_MASK_TYPE_GAUSSI...
uint32_t blockSize
for DW_PROCESSOR_TYPE_PVA_0 or DW_PROCESSOR_TYPE_PVA_1 only Block window size used to compute the Har...
@ DW_FEATURE2D_DETECTOR_TYPE_STD
Standard Harris Corner detector with fixed parameters, quicker.
float32_t gaussianMaskStDevX
for DW_FEATURE2D_DETECTOR_TYPE_EX only Ignored when not using DW_FEATURE2D_SELECTION_MASK_TYPE_GAUSSI...
DW_API_PUBLIC dwStatus dwFeature2DDetector_getPVAStream(cupvaStream_t *stream, dwFeature2DDetectorHandle_t obj)
Gets the CUPVA stream used by the feature Detector.
float32_t scoreThreshold
Threshold to filter out low frequency points.
DW_API_PUBLIC dwStatus dwFeature2DDetector_detectFromImage(dwFeatureArray *outputDetections, dwImageHandle_t image, dwFeatureArray *preTrackedFeatures, const float32_t *d_normalizedCrossCorrelation, dwFeature2DDetectorHandle_t obj)
Detects new features and append them after old tracked features.
float32_t detailThreshold
for DW_FEATURE2D_DETECTOR_TYPE_STD only features in the cell that have scores higher than this value ...
DW_API_PUBLIC dwStatus dwFeature2DDetector_detectFromPyramid(dwFeatureArray *outputDetections, const dwPyramidImage *pyramid, dwFeatureArray *preTrackedFeatures, const float32_t *d_normalizedCrossCorrelation, dwFeature2DDetectorHandle_t obj)
Detects new features and append them after old tracked features.
void * cupvaStream_t
Dummy definition for non PVA supported platforms.
@ DW_FEATURE2D_DETECTOR_TYPE_FAST9
Fast corner detector, quicker.
DW_API_PUBLIC dwStatus dwFeature2DDetector_registerInputNccScore(float32_t *nccScore, uint32_t nccScoreArraySize, dwFeature2DDetectorHandle_t obj)
Binds input ncc Score.
DW_API_PUBLIC dwStatus dwFeature2DDetector_initialize(dwFeature2DDetectorHandle_t *obj, const dwFeature2DDetectorConfig *config, cudaStream_t const cudaStream, dwContextHandle_t const context)
Creates and initializes a feature Detector.
struct dwFeature2DDetectorObject const * dwConstFeature2DDetectorHandle_t
Handle representing a const feature detector.
struct dwCameraModelObject const * dwConstCameraModelHandle_t
A pointer to the handle representing a const calibrated camera.
DW_API_PUBLIC dwStatus dwFeature2DDetector_getValidTrackedCount(const uint32_t **d_validTrackedCount, dwFeature2DDetectorHandle_t obj)
dwFeature2DDetector_getValidTrackedCount
bool useNewToOldMapFromPreTracked
Determines whether the detector uses dwFeatureArray::newToOldMap directly from input preTrackedFeatur...
uint32_t imageHeight
Height of the images that the Detector runs on.
float32_t gaussianMaskStDevY
for DW_FEATURE2D_DETECTOR_TYPE_EX only Ignored when not using DW_FEATURE2D_SELECTION_MASK_TYPE_GAUSSI...
uint32_t NMSRadius
for DW_FEATURE2D_DETECTOR_TYPE_EX and DW_FEATURE2D_DETECTOR_TYPE_FAST9 STD detector use fixed NMSRadi...
dwProcessorType processorType
for DW_FEATURE2D_DETECTOR_TYPE_STD only set to DW_PROCESSOR_TYPE_PVA_0 or DW_PROCESSOR_TYPE_PVA_1 to ...
DW_API_PUBLIC dwStatus dwFeature2DDetector_dryrunDetectionPyramid(dwFeatureArray *outputDetections, dwFeatureArray *preTrackedFeatures, const float32_t *d_normalizedCrossCorrelation, dwFeature2DDetectorHandle_t obj)
Dryrun the detection to record a CUDA graph.
uint32_t maxFeatureCount
Upper bound on number of features handled.
Holds configuration parameters for a feature detector.
DW_API_PUBLIC dwStatus dwFeature2DDetector_getCUDAStream(cudaStream_t *stream, dwFeature2DDetectorHandle_t obj)
Gets the CUDA stream used by the feature Detector.
@ DW_FEATURE2D_DETECTOR_TYPE_COUNT
@ DW_FEATURE2D_SELECTION_MASK_TYPE_UNIFORM
output feature in uniform distribution
const uint32_t DW_FEATURES2D_DETECTOR_MAX_CELL_SIZE
DW_API_PUBLIC dwStatus dwFeature2DDetector_setScoreThreshold(float32_t scoreThreshold, dwFeature2DDetectorHandle_t obj)
Set Harris detector's score threshold.
@ DW_FEATURE2D_SELECTION_MASK_TYPE_GAUSSIAN
output feature in 2D gaussian distribution which has more features in center area and less ones in bo...
dwFeature2DDetectorType
Defines different KLT tracking algorithms.
uint32_t detectionLevel
for DW_FEATURE2D_DETECTOR_TYPE_EX only STD detector always detects on level 0 pyramid image.
@ DW_FEATURE2D_SELECTION_MASK_TYPE_COUNT
bool isMaskAdjustmentEnabled
for DW_FEATURE2D_DETECTOR_TYPE_EX only Switch to use mask adjusment
DW_API_PUBLIC dwStatus dwFeature2DDetector_release(dwFeature2DDetectorHandle_t obj)
Releases the feature Detector.
DW_API_PUBLIC dwStatus dwFeature2DDetector_initDefaultParamsForCamera(dwFeature2DDetectorConfig *params, const dwTransformation3f *cameraToRig, dwConstCameraModelHandle_t cameraHandle)
Initializes dwFeature2DDetector parameters with values best suited for the given camera using camera ...
dwFeature2DSelectionMaskType
Feature distribution mask for extended detector.
const NvSciSyncObj *const obj
dwFeature2DSelectionMaskType maskType
for DW_FEATURE2D_DETECTOR_TYPE_EX only STD detector always output UNIFORM distribution.
DW_API_PUBLIC dwStatus dwFeature2DDetector_initDefaultParams(dwFeature2DDetectorConfig *params)
Initializes dwFeature2DDetector parameters with default values.
DW_API_PUBLIC dwStatus dwFeature2DDetector_reset(dwFeature2DDetectorHandle_t obj)
Resets a feature Detector.
dwStatus
Status definition.
#define DW_DEPRECATED(msg)
float32_t harrisK
Weigting K of the harris corner score defined as det(M) - K * trace(M) * trace(M),...
uint32_t cellSize
Cell size in pixel to split the image into cells.
DW_API_PUBLIC dwStatus dwFeature2DDetector_setPVAStream(cupvaStream_t const stream, dwFeature2DDetectorHandle_t obj)
Sets the CUPVA stream for PVA related operations.
struct dwImageObject * dwImageHandle_t
Handle to an image object.
struct dwContextObject * dwContextHandle_t
Context handle.
uint32_t numEvenDistributionPerCell
for DW_FEATURE2D_DETECTOR_TYPE_STD only Number of features to be appended after high frequency points...
float32_t gaussianMaskCenterY
for DW_FEATURE2D_DETECTOR_TYPE_EX only Ignored when not using DW_FEATURE2D_SELECTION_MASK_TYPE_GAUSSI...
uint32_t gradientSize
for DW_PROCESSOR_TYPE_PVA_0 or DW_PROCESSOR_TYPE_PVA_1 only Gradient window size.
struct dwFeature2DDetectorObject * dwFeature2DDetectorHandle_t
Handle representing a feature detector.
uint32_t imageWidth
Width of the images that the Detector runs on.
uint32_t harrisRadius
for DW_FEATURE2D_DETECTOR_TYPE_EX only STD detector use fixed harrisRadius = 1.
DW_API_PUBLIC dwStatus dwFeature2DDetector_getScoreThreshold(float32_t *scoreThreshold, dwFeature2DDetectorHandle_t obj)
Get the current score threshold used in Harris detector.
DW_API_PUBLIC dwStatus dwFeature2DDetector_setMask(const uint8_t *d_mask, const uint32_t maskStrideBytes, const uint32_t maskWidth, const uint32_t maskHeight, dwFeature2DDetectorHandle_t obj)
Sets a mask to ignore areas of the image.
DW_API_PUBLIC dwStatus dwFeature2DDetector_registerFeatureArray(dwFeatureArray const *inFeatures, dwFeature2DDetectorHandle_t obj)
Binds feature Array.
DW_API_PUBLIC dwStatus dwFeature2DDetector_dryrunDetectionImage(dwFeatureArray *outputDetections, dwFeatureArray *preTrackedFeatures, const float32_t *d_normalizedCrossCorrelation, dwFeature2DDetectorHandle_t obj)
Dryrun the detection to record a CUDA graph.
Holds pointers to the data exposed by a feature2d list.
bool useHalf
for DW_FEATURE2D_DETECTOR_TYPE_EX only use half-precision floating point to calculate harris corner s...
DW_API_PUBLIC dwStatus dwFeature2DDetector_setCUDAStream(cudaStream_t const stream, dwFeature2DDetectorHandle_t obj)
Sets the CUDA stream for CUDA related operations.
bool autoGenerateFeatureID
Determines whether the detector generates unique feature ids for new detections automatically.
dwFeature2DDetectorType type
Detecting algorithm defined by dwFeature2DDetectorType
@ DW_FEATURE2D_DETECTOR_TYPE_EX
Extended Harris Corner detector with more configurable parameters, more flexible, better quality but ...
DW_API_PUBLIC dwStatus dwFeature2DDetector_registerHistoryArray(dwFeatureHistoryArray *historyArray, dwFeature2DDetectorHandle_t obj)
Binds feature HistoryArray.