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

  • DriveWorks SDK Reference
    5.8.83 Release
    For Test and Development only

    All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    ConnectedComponents.h
    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-2021 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
    46#ifndef DW_IMAGEPROCESSING_CONNECTED_COMPONENTS_H_
    47#define DW_IMAGEPROCESSING_CONNECTED_COMPONENTS_H_
    48
    49#include <dw/image/Image.h>
    50
    51#ifdef __cplusplus
    52extern "C" {
    53#endif
    54
    58typedef struct dwConnectedComponentsObject* dwConnectedComponentsHandle_t;
    62typedef struct dwConnectedComponentsObject* const dwConstConnectedComponentsHandle_t;
    63
    76 const dwImageProperties* inputDesc,
    77 dwContextHandle_t context);
    78
    88
    98
    111
    125
    137
    151
    160
    170
    171#ifdef __cplusplus
    172}
    173#endif
    175#endif // DW_IMAGEPROCESSING_CONNECTED_COMPONENTS_H_
    DW_API_PUBLIC dwStatus dwConnectedComponents_release(dwConnectedComponentsHandle_t ccl)
    Releases connected components object.
    DW_API_PUBLIC dwStatus dwConnectedComponents_setCUDAStream(cudaStream_t stream, dwConnectedComponentsHandle_t ccl)
    Specifies CUDA stream where kernels are executed.
    DW_API_PUBLIC dwStatus dwConnectedComponents_bindInput(const dwImageCUDA *image, dwConnectedComponentsHandle_t ccl)
    Specifies input image to be processed.
    DW_API_PUBLIC dwStatus dwConnectedComponents_process(dwConnectedComponentsHandle_t ccl)
    Performs image labeling.
    struct dwConnectedComponentsObject * dwConnectedComponentsHandle_t
    A pointer to the opaque handle for Connected Components.
    DW_API_PUBLIC dwStatus dwConnectedComponents_initialize(dwConnectedComponentsHandle_t *ccl, const dwImageProperties *inputDesc, dwContextHandle_t context)
    Initializes connected components.
    DW_API_PUBLIC dwStatus dwConnectedComponents_bindOutputLabels(dwImageCUDA *labels, dwConnectedComponentsHandle_t ccl)
    Specifies output label image for ccl algorithm.
    DW_API_PUBLIC dwStatus dwConnectedComponents_setThreshold(uint8_t threshold, dwConnectedComponentsHandle_t ccl)
    Specifies threshold to binarize input image.
    DW_API_PUBLIC dwStatus dwConnectedComponents_reset(dwConnectedComponentsHandle_t ccl)
    Performs reset of connected components object.
    struct dwConnectedComponentsObject *const dwConstConnectedComponentsHandle_t
    A constant pointer to the opaque handle for Connected Components.
    DW_API_PUBLIC dwStatus dwConnectedComponents_getCUDAStream(cudaStream_t *stream, dwConnectedComponentsHandle_t ccl)
    Returns CUDA stream where kernels are executed.
    struct dwContextObject * dwContextHandle_t
    Context handle.
    Definition: Context.h:82
    #define DW_API_PUBLIC
    Definition: Exports.h:54
    dwStatus
    Status definition.
    Definition: Status.h:171
    Defines a CUDA image.
    Definition: Image.h:427
    Defines the properties of the image.
    Definition: Image.h:397
    NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
    人人超碰97caoporen国产