Defines 2D-based feature description.
Data Structures | |
| struct | dwFeature2DDescriptorConfig |
| Holds configuration parameters for a feature descriptor. More... | |
Typedefs | |
| typedef struct dwFeature2DDescriptorObject const * | dwConstFeature2DDescriptorHandle_t |
| Handle representing a const feature descriptor. More... | |
| typedef struct dwFeature2DDescriptorObject * | dwFeature2DDescriptorHandle_t |
| Handle representing a feature descriptor. More... | |
Enumerations | |
| enum | dwFeature2DDescriptorAlgorithm { DW_FEATURE2D_DESCRIPTOR_ALGORITHM_ORB = 0, DW_FEATURE2D_DESCRIPTOR_ALGORITHM_COUNT } |
| Feature descriptor algorithm. More... | |
| enum | dwFeature2DDescriptorStage { DW_FEATURE2D_DESCRIPTOR_STAGE_GPU_ASYNC = 0, DW_FEATURE2D_DESCRIPTOR_STAGE_CPU_SYNC, DW_FEATURE2D_DESCRIPTOR_STAGE_PVA_ASYNC, DW_FEATURE2D_DESCRIPTOR_STAGE_CPU_SYNC_POSTPROCESS, DW_FEATURE2D_DESCRIPTOR_STAGE_GPU_ASYNC_POSTPROCESS = 100 } |
| The stage of feature descriptor. More... | |
| struct dwFeature2DDescriptorConfig |
| Data Fields | ||
|---|---|---|
| dwFeature2DDescriptorAlgorithm | algorithm |
Detecting algorithm defined by dwFeature2DDescriptorType |
| uint32_t | imageHeight | Height of the images that the descriptor runs on. |
| uint32_t | imageWidth | Width of the images that the Descriptor runs on. |
| uint32_t | maxFeatureCount | Upper bound on number of features handled. |
| dwProcessorType | processorType | for DW_FEATURE2D_DESCRIPTOR_ALGORITHM_ORB only set to DW_PROCESSOR_TYPE_PVA_0 to call PVA orb descriptor. |
| typedef struct dwFeature2DDescriptorObject const* dwConstFeature2DDescriptorHandle_t |
Handle representing a const feature descriptor.
Definition at line 65 of file FeatureDescriptor.h.
| typedef struct dwFeature2DDescriptorObject* dwFeature2DDescriptorHandle_t |
Handle representing a feature descriptor.
Definition at line 62 of file FeatureDescriptor.h.
Feature descriptor algorithm.
| Enumerator | |
|---|---|
| DW_FEATURE2D_DESCRIPTOR_ALGORITHM_ORB | ORB descriptor. |
| DW_FEATURE2D_DESCRIPTOR_ALGORITHM_COUNT | |
Definition at line 68 of file FeatureDescriptor.h.
The stage of feature descriptor.
Definition at line 101 of file FeatureDescriptor.h.
| DW_API_PUBLIC dwStatus dwFeature2DDescriptor_bindInputBuffers | ( | dwImageHandle_t | image, |
| dwFeatureArray * | features, | ||
| dwFeature2DDescriptorHandle_t | obj | ||
| ) |
Binds input parameters to descriptor object.
| [in] | image | Specifies the image on which feature detection takes place, must be a CUDA image. |
| [in,out] | features | Features whose descriptor to be calculated. |
| [in] | obj | Specifies the feature descriptor handle. |
dwFeature2DDescriptor_bindInputImage must be called at least once before dwFeature2DDescriptor_processImage. | DW_API_PUBLIC dwStatus dwFeature2DDescriptor_bindOutput | ( | dwFeatureDescriptorArray * | outputDescriptors, |
| dwFeature2DDescriptorHandle_t | obj | ||
| ) |
Binds output dwFeatureDescriptorArray to descriptor object.
| [out] | outputDescriptors | Feature descriptor array containing the calculated feature descriptors features. Must be created by dwFeatureDescriptorArray_create() with DW_PROCESSOR_TYPE_GPU flag and the same maxFeatureCount when initializing descriptor |
| [in] | obj | Specifies the feature descriptor handle. |
dwFeature2DDescriptor_bindOutput to set output feature descriptor array. | DW_API_PUBLIC dwStatus dwFeature2DDescriptor_getCUDAStream | ( | cudaStream_t * | stream, |
| dwFeature2DDescriptorHandle_t | obj | ||
| ) |
Gets the CUDA stream used by the feature descriptor.
| [out] | stream | The CUDA stream currently used. |
| [in] | obj | A handle to the feature descriptor module. |
| DW_API_PUBLIC dwStatus dwFeature2DDescriptor_initDefaultParams | ( | dwFeature2DDescriptorConfig * | params | ) |
Initializes dwFeature2DDescriptor parameters with default values.
| [out] | params | dwFeature2DDescriptor parameters |
| DW_API_PUBLIC dwStatus dwFeature2DDescriptor_initialize | ( | dwFeature2DDescriptorHandle_t * | obj, |
| const dwFeature2DDescriptorConfig * | config, | ||
| cudaStream_t | cudaStream, | ||
| dwContextHandle_t | context | ||
| ) |
Creates and initializes a feature descriptor.
| [out] | obj | A pointer to the feature descriptor handle is returned here. |
| [in] | config | Specifies the configuration parameters. |
| [in] | cudaStream | Specifies the CUDA stream to use for descriptor operations. |
| [in] | context | Specifies the handle to the context under which it is created. |
| DW_API_PUBLIC dwStatus dwFeature2DDescriptor_processImage | ( | dwFeature2DDescriptorStage | stage, |
| dwFeature2DDescriptorHandle_t | obj | ||
| ) |
Do detections on the image bound by dwFeature2DDescriptor_bindInputImage, output will be written to dwFeatureDescriptorArray bound by dwFeature2DDescriptor_bindOutput.
| [in] | stage | Speicifies the detecting stage |
| [in] | obj | Specifies the feature descriptor handle. |
| DW_API_PUBLIC dwStatus dwFeature2DDescriptor_release | ( | dwFeature2DDescriptorHandle_t | obj | ) |
Releases the feature descriptor.
This method releases all resources associated with a feature descriptor.
| [in] | obj | The feature descriptor handle to be released. |
| DW_API_PUBLIC dwStatus dwFeature2DDescriptor_reset | ( | dwFeature2DDescriptorHandle_t | obj | ) |
Resets a feature descriptor.
| [in] | obj | Specifies the feature descriptor handle to be reset. |
| DW_API_PUBLIC dwStatus dwFeature2DDescriptor_setCUDAStream | ( | cudaStream_t | stream, |
| dwFeature2DDescriptorHandle_t | obj | ||
| ) |
Sets the CUDA stream for CUDA related operations.
| [in] | stream | The CUDA stream to be used. Default is the one passed during dwFeature2DDescriptor_initialize. |
| [in] | obj | A handle to the feature descriptor module to set CUDA stream for. |