• <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • Compute Graph Framework SDK Reference  5.22
    All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    dwFeatureTrackerNode.hpp
    Go to the documentation of this file.
    1
    2//
    3// Notice
    4// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
    5// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
    6// THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
    7// MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
    8//
    9// NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
    10// information or for any infringement of patents or other rights of third parties that may
    11// result from its use. No license is granted by implication or otherwise under any patent
    12// or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
    13// expressly authorized by NVIDIA. Details are subject to change without notice.
    14// This code supersedes and replaces all information previously supplied.
    15// NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
    16// components in life support devices or systems without express written approval of
    17// NVIDIA CORPORATION & AFFILIATES.
    18//
    19// SPDX-FileCopyrightText: Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
    20// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
    21//
    22// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
    23// property and proprietary rights in and to this material, related
    24// documentation and any modifications thereto. Any use, reproduction,
    25// disclosure or distribution of this material and related documentation
    26// without an express license agreement from NVIDIA CORPORATION or
    27// its affiliates is strictly prohibited.
    28//
    30
    31#ifndef DWFRAMEWORK_DWNODES_IMAGEPROCESSING_DWFEATURETRACKERNODE_DWFEATURETRACKERNODE_HPP_
    32#define DWFRAMEWORK_DWNODES_IMAGEPROCESSING_DWFEATURETRACKERNODE_DWFEATURETRACKERNODE_HPP_
    33
    34#include <dw/imageprocessing/featuredetector/FeatureDetector.h>
    35#include <dw/imageprocessing/features/FeatureList.h>
    36#include <dw/imageprocessing/tracking/featuretracker/FeatureTracker_processpipeline.h>
    37#include <dwcgf/node/Node.hpp>
    41#include <dwcgf/port/Port.hpp>
    43#include <dwframework/dwnodes/common/channelpackets/DwframeworkTypes.hpp>
    44#include <dwframework/dwnodes/common/channelpackets/FeatureList.hpp>
    45#include <dwframework/dwnodes/common/channelpackets/Pyramid.hpp>
    46#include <dwframework/dwnodes/common/channelpackets/SensorCommonTypes.hpp>
    47
    48namespace dw
    49{
    50namespace framework
    51{
    52
    54{
    55 bool initForCamera;
    56 dwCameraModelHandle_t intrinsic;
    57 dwTransformation3f extrinsic;
    58
    59 dwFeature2DTrackerConfig dwTrackerParams;
    60 cupvaStream_t cupvaStream;
    61 cudaStream_t cudaStream;
    64 uint32_t rrSehErrorCode;
    65};
    66
    68{
    69public:
    70 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-2201
    71 static constexpr auto describeInputPorts()
    72 {
    73 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
    74 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    76 DW_DESCRIBE_PORT(dwPyramidImage, "CURRENT_PYRAMID"_sv, PortBinding::REQUIRED),
    77 DW_DESCRIBE_PORT(dwFeatureArray, "DETECTED_FEATURES"_sv, PortBinding::REQUIRED));
    78 };
    79 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-2201
    80 static constexpr auto describeOutputPorts()
    81 {
    82 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
    83 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    85 DW_DESCRIBE_PORT(dwFeatureHistoryArray, "FEATURE_HISTORY_CPU"_sv, PortBinding::REQUIRED),
    86 DW_DESCRIBE_PORT(dwFeatureHistoryArray, "FEATURE_HISTORY_GPU"_sv, PortBinding::REQUIRED),
    87 DW_DESCRIBE_PORT(dwFeatureHistoryArray, "FEATURE_HISTORY_GPU_INTERNAL"_sv, PortBinding::REQUIRED),
    88 DW_DESCRIBE_PORT(dwFeatureNccScores, "NCC_SCORES"_sv, PortBinding::REQUIRED),
    89 DW_DESCRIBE_PORT(void*, "MODULE_HANDLE"_sv, PortBinding::REQUIRED));
    90 };
    91
    92 // Inherit constructor from base class
    94};
    95
    100{
    101public:
    102 // TODO(csketch): FP -- This is used when the logger is called and not just at assignment.
    103 // coverity[autosar_cpp14_a0_1_1_violation] FP: nvbugs/2980283
    104 // coverity[autosar_cpp14_m0_1_4_violation] FP: nvbugs/2980283
    105 static constexpr char8_t LOG_TAG[]{"dwFeatureTrackerNode"};
    106 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-2201
    107 static constexpr auto describePasses()
    108 {
    110 describePass(StringView{"SETUP"}, DW_PROCESSOR_TYPE_CPU),
    111 describePass(StringView{"TRACK_FEATURE"}, DW_PROCESSOR_TYPE_GPU),
    112 describePass(StringView{"COMPACT_FEATURE"}, DW_PROCESSOR_TYPE_GPU),
    113 describePass(StringView{"COPY"}, DW_PROCESSOR_TYPE_GPU),
    114 describePass(StringView{"WAIT_EVENT"}, DW_PROCESSOR_TYPE_CPU),
    115 describePass(StringView{"TEARDOWN"}, DW_PROCESSOR_TYPE_CPU));
    116 };
    117
    118 static std::unique_ptr<dwFeatureTrackerNode> create(ParameterProvider& provider);
    119
    120 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-2201
    121 static constexpr auto describeParameters()
    122 {
    123 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
    124 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    126 describeConstructorArgument<dwFeatureTrackerNodeParams>(
    128 bool,
    129 "initForCamera"_sv,
    130 &dwFeatureTrackerNodeParams::initForCamera),
    132 dwCameraModelHandle_t,
    133 "cameraIndex"_sv,
    136 dwTransformation3f,
    138 "cameraIndex"_sv,
    141 dwTime_t,
    142 "nvSciChannelWaitTimeUs"_sv,
    143 0,
    146 dwFeature2DTrackerAlgorithm,
    147 "featureTrackerAlgorithm"_sv,
    148 &dwFeatureTrackerNodeParams::dwTrackerParams, &dwFeature2DTrackerConfig::algorithm),
    150 dwFeature2DDetectorType,
    151 "featureDetectorType"_sv,
    152 &dwFeatureTrackerNodeParams::dwTrackerParams, &dwFeature2DTrackerConfig::detectorType),
    154 uint32_t,
    155 "maxFeatureCount"_sv,
    156 &dwFeatureTrackerNodeParams::dwTrackerParams, &dwFeature2DTrackerConfig::maxFeatureCount),
    158 uint32_t,
    159 "pyramidLevelCount"_sv,
    160 &dwFeatureTrackerNodeParams::dwTrackerParams, &dwFeature2DTrackerConfig::pyramidLevelCount),
    162 uint32_t,
    164 "cameraIndex"_sv,
    165 &dwFeatureTrackerNodeParams::dwTrackerParams, &dwFeature2DTrackerConfig::imageWidth),
    167 uint32_t,
    169 "cameraIndex"_sv,
    170 &dwFeatureTrackerNodeParams::dwTrackerParams, &dwFeature2DTrackerConfig::imageHeight),
    172 cudaStream_t,
    173 "streamIndex"_sv,
    175 describeConstructorArgument<dwContextHandle_t>(
    177 dwContextHandle_t)));
    178 }
    179
    181 const dwContextHandle_t ctx);
    182};
    183} // namespace framework
    184} // namespace dw
    185
    186#endif // DWFRAMEWORK_DWNODES_IMAGEPROCESSING_DWFEATURETRACKERNODE_DWFEATURETRACKERNODE_HPP_
    #define DW_DESCRIBE_INDEX_PARAMETER_WITH_SEMANTIC(TYPE_NAME, SEMANTIC_TYPE_NAME, args...)
    #define DW_DESCRIBE_INDEX_PARAMETER(TYPE_NAME, args...)
    #define DW_DESCRIBE_PARAMETER_WITH_DEFAULT(TYPE_NAME, args...)
    #define DW_DESCRIBE_UNNAMED_PARAMETER(TYPE_NAME, args...)
    #define DW_DESCRIBE_PARAMETER(TYPE_NAME, args...)
    #define DW_DESCRIBE_PORT(TYPE_NAME, NAME, args...)
    ExceptionSafeProcessNode(std::unique_ptr< Node > impl)
    The interface to access parameter values identified by name and/or (semantic) type.
    static std::unique_ptr< dwFeatureTrackerNode > create(ParameterProvider &provider)
    dwFeatureTrackerNode(const dwFeatureTrackerNodeParams &params, const dwContextHandle_t ctx)
    dwFeature2DTrackerConfig dwTrackerParams
    constexpr std::tuple describeConstructorArguments()
    dwTransformation3f extrinsic
    cupvaStream_t cupvaStream
    constexpr PassDescriptorT< 0 > describePass(dw::core::StringView &&name, dwProcessorType processorType)
    constexpr auto describePassCollection(const Args &&... args) -> std::tuple< Args... >
    constexpr auto describePortCollection(Args &&... args) -> dw::core::Tuple< Args... >
    dwTime_t nvSciChannelWaitTimeUs
    Wait time for nvSciChannel.
    uint32_t rrSehErrorCode
    Wait time for nvSciChannel.
    dwFeatureTrackerNodeParams { bool initForCamera dwFeatureTrackerNodeParams
    dwCameraModelHandle_t intrinsic
    Definition: Buffer.hpp:41
    人人超碰97caoporen国产