Loading [MathJax]/extensions/MathMenu.js
  • <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>

  • DriveWorks SDK Reference
    5.6.215 Release
    For Test and Development only

    All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    FeatureDescriptor.h
    Go to the documentation of this file.
    1
    2// This code contains NVIDIA Confidential Information and is disclosed
    3// under the Mutual Non-Disclosure Agreement.
    4//
    5// Notice
    6// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
    7// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
    8// THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
    9// MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
    10//
    11// NVIDIA Corporation assumes no responsibility for the consequences of use of such
    12// information or for any infringement of patents or other rights of third parties that may
    13// result from its use. No license is granted by implication or otherwise under any patent
    14// or patent rights of NVIDIA Corporation. No third party distribution is allowed unless
    15// expressly authorized by NVIDIA. Details are subject to change without notice.
    16// This code supersedes and replaces all information previously supplied.
    17// NVIDIA Corporation products are not authorized for use as critical
    18// components in life support devices or systems without express written approval of
    19// NVIDIA Corporation.
    20//
    21// Copyright (c) 2021-2022 NVIDIA Corporation. All rights reserved.
    22//
    23// NVIDIA Corporation and its licensors retain all intellectual property and proprietary
    24// rights in and to this software and related documentation and any modifications thereto.
    25// Any use, reproduction, disclosure or distribution of this software and related
    26// documentation without an express license agreement from NVIDIA Corporation is
    27// strictly prohibited.
    28//
    30
    46#ifndef DW_IMAGEPROCESSING_FEATURE_DESCRIPTOR_H_
    47#define DW_IMAGEPROCESSING_FEATURE_DESCRIPTOR_H_
    48
    49#include <dw/core/Config.h>
    52#include <dw/core/base/Types.h>
    53#include <dw/image/Image.h>
    56
    57#ifdef __cplusplus
    58extern "C" {
    59#endif
    60
    62typedef struct dwFeature2DDescriptorObject* dwFeature2DDescriptorHandle_t;
    63
    65typedef struct dwFeature2DDescriptorObject const* dwConstFeature2DDescriptorHandle_t;
    66
    68typedef enum {
    73
    78{
    81
    83 uint32_t imageWidth;
    84
    86 uint32_t imageHeight;
    87
    90
    95
    97
    102 // GPU Async stage
    104 // CPU preprocess
    106 // PVA Process
    108 // CPU Post process
    113
    122
    136 const dwFeature2DDescriptorConfig* config,
    137 cudaStream_t cudaStream,
    138 dwContextHandle_t context);
    139
    150
    165
    179
    191
    208
    223 dwFeatureArray* features,
    225
    240
    241#ifdef __cplusplus
    242}
    243#endif
    245#endif // DW_IMAGEPROCESSING_FEATURE_DESCRIPTOR_H_
    NVIDIA DriveWorks API: Feature Array and Feature History Array
    NVIDIA DriveWorks API: Pyramid
    NVIDIA DriveWorks API: Core Types
    NVIDIA DriveWorks API: Core Methods
    NVIDIA DriveWorks API: Core Exports
    struct dwContextObject * dwContextHandle_t
    Context handle.
    Definition: Context.h:79
    #define DW_API_PUBLIC
    Definition: Exports.h:54
    dwStatus
    Status definition.
    Definition: Status.h:170
    dwProcessorType
    Processor type definitions.
    Definition: Types.h:168
    dwProcessorType processorType
    for DW_FEATURE2D_DESCRIPTOR_ALGORITHM_ORB only set to DW_PROCESSOR_TYPE_PVA_0 to call PVA orb descrip...
    uint32_t imageWidth
    Width of the images that the Descriptor runs on.
    uint32_t maxFeatureCount
    Upper bound on number of features handled.
    dwFeature2DDescriptorAlgorithm algorithm
    Detecting algorithm defined by dwFeature2DDescriptorType
    uint32_t imageHeight
    Height of the images that the descriptor runs on.
    dwFeature2DDescriptorStage
    The stage of feature descriptor.
    DW_API_PUBLIC dwStatus dwFeature2DDescriptor_bindOutput(dwFeatureDescriptorArray *outputDescriptors, dwFeature2DDescriptorHandle_t obj)
    Binds output dwFeatureDescriptorArray to descriptor object.
    struct dwFeature2DDescriptorObject * dwFeature2DDescriptorHandle_t
    Handle representing a feature descriptor.
    DW_API_PUBLIC dwStatus dwFeature2DDescriptor_bindInputBuffers(dwImageHandle_t image, dwFeatureArray *features, dwFeature2DDescriptorHandle_t obj)
    Binds input parameters to descriptor object.
    DW_API_PUBLIC dwStatus dwFeature2DDescriptor_release(dwFeature2DDescriptorHandle_t obj)
    Releases the feature descriptor.
    dwFeature2DDescriptorAlgorithm
    Feature descriptor algorithm.
    DW_API_PUBLIC dwStatus dwFeature2DDescriptor_getCUDAStream(cudaStream_t *stream, dwFeature2DDescriptorHandle_t obj)
    Gets the CUDA stream used by the feature descriptor.
    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 d...
    struct dwFeature2DDescriptorObject const * dwConstFeature2DDescriptorHandle_t
    Handle representing a const feature descriptor.
    DW_API_PUBLIC dwStatus dwFeature2DDescriptor_initDefaultParams(dwFeature2DDescriptorConfig *params)
    Initializes dwFeature2DDescriptor parameters with default values.
    DW_API_PUBLIC dwStatus dwFeature2DDescriptor_initialize(dwFeature2DDescriptorHandle_t *obj, const dwFeature2DDescriptorConfig *config, cudaStream_t cudaStream, dwContextHandle_t context)
    Creates and initializes a feature descriptor.
    DW_API_PUBLIC dwStatus dwFeature2DDescriptor_setCUDAStream(cudaStream_t stream, dwFeature2DDescriptorHandle_t obj)
    Sets the CUDA stream for CUDA related operations.
    DW_API_PUBLIC dwStatus dwFeature2DDescriptor_reset(dwFeature2DDescriptorHandle_t obj)
    Resets a feature descriptor.
    @ DW_FEATURE2D_DESCRIPTOR_STAGE_CPU_SYNC
    @ DW_FEATURE2D_DESCRIPTOR_STAGE_GPU_ASYNC
    @ DW_FEATURE2D_DESCRIPTOR_STAGE_PVA_ASYNC
    @ DW_FEATURE2D_DESCRIPTOR_STAGE_CPU_SYNC_POSTPROCESS
    @ DW_FEATURE2D_DESCRIPTOR_STAGE_GPU_ASYNC_POSTPROCESS
    Process the postprocess part of the feature descriptor pipeline on CPU.
    @ DW_FEATURE2D_DESCRIPTOR_ALGORITHM_ORB
    ORB descriptor.
    @ DW_FEATURE2D_DESCRIPTOR_ALGORITHM_COUNT
    Holds configuration parameters for a feature descriptor.
    struct dwImageObject * dwImageHandle_t
    Definition: Image.h:109
    NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
    人人超碰97caoporen国产