|
|
NVIDIA DriveOS Linux NSR SDK API Reference
|
7.0.3.0 Release
|
Go to the documentation of this file.
12 #ifndef PVA_ALGOS_DETECTOR
13 #define PVA_ALGOS_DETECTOR
17 struct DetectorAlgoContext;
177 #endif //PVA_ALGOS_DETECTOR
void * cupvaStream_t
Dummy definition for non PVA supported platforms.
float * loc
In: Feature locations of previously detected features.
uint32_t * outScales
Out: Output feature scale array.
bool enableNccScore
In:Flag is disabled when ncc score is null.
struct DetectorAlgoContext * pvaAlgosDetectorContext_t
Structure that stores internal objects needed for feature detector.
uint32_t * oldFeatureCount
In:: Pointer to tracked input feature count.
uint32_t * outputFeatureCount
Out: Number of (features detected +features that are being tracked from previous frame)
uint32_t * id
In: Feature ids of previously detected features.
float * outLoc
Out: Output feature locations array.
uint32_t * outId
Out: Output feature id array.
uint32_t * status
In: Feature status array of previously detected features.
int32_t nmsSize
In: size of non-maximum suppresion filter.
uint32_t * detectCount
Out: Number of newly detected features in current frame.
uint32_t detectionLevel
pyramid level on which feature detection will execute.
float * ncc
In: Feature NCC ages from feature tracker.
pvaAlgosError_t pvaAlgosDetectorInit(pvaAlgosDetectorContext_t *detectorContext, pvaAlgosDetectorConfig_t *detectorParams)
Initializes the necessary values for the internal objects in DetectorAlgoContext object.
int32_t thresholdFixedPoint
In: threshold score to classify the point as a feature.
pvaAlgosError_t pvaAlgosDetectorGetContext(pvaAlgosDetectorContext_t *detectorContext)
Initializes DetectorAlgoContext object and sends it back to the caller.
uint32_t imageWidth
Input image width.
uint32_t * maxId
In: Input max id of the feature in last frame.
pvaAlgosError_t pvaAlgosDetectorDeInit(pvaAlgosDetectorContext_t *detectorContext)
Frees the internal objects and the DetectorAlgoContext object.
uint32_t * trackCount
Out: Number of features detected that are being tracked from previous frame.
uint32_t * age
In: Feature ages of previously detected features.
Structure that holds configuration parameters for a feature detector.
uint32_t * outStatus
Out: Output feature status array.
Structure that holds I/O Buffers that change based on the frame inputs.
uint32_t imageHeight
Input image height.
uint8_t * imageMask
In: Image ROI mask, set to 0xff to enable pixel or 0x0 to disable.
uint32_t linePitch
Input image line pitch.
uint32_t * outAge
Out: Output feature age array.
uint8_t * image
In: Input image pointer.
int32_t maskAdjustmentEnabled
In: to enable update of distribution mask before each detection.
pvaAlgosError_t
Possible error codes returned by PVA Algos.
uint32_t * maxIdD
Out: Max feature id in current frame after detection.
uint32_t maxFeatureCount
Maximum no of features that can be detected.
uint32_t * scales
In: Feature scales of previously detected features.
pvaAlgosError_t pvaAlgosDetectorProcess(pvaAlgosDetectorContext_t *detectorContext, pvaAlgosDetectorIOBuffer_t *detectorBuffers, cupvaStream_t *instanceStream, int execTimeout)
Sets the I/O Buffers to the internal objects and runs the Feature Detector Algorithm.
int * harrisOutput
Out: Output Harris scores.
float lambda
value of harris-k.
float * outNcc
Out: Output ncc score array.
int * featureMask
In: Max number of features to keep per cell, set a uniform or Gaussian mask.
uint32_t * newToOld
out track status