NVIDIA DeepStream SDK API Reference

7.1 Release
nvds_mask_utils.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
20 #ifndef _NVDS_MAKS_UTILS_H_
21 #define _NVDS_MAKS_UTILS_H_
22 
23 #include <cuda_runtime.h>
24 #include <stdint.h>
25 #include <stdbool.h>
26 
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif
31 
60 bool nvds_mask_utils_resize_to_binary_argb32(float *src, uint32_t* dst,
61  uint32_t src_width, uint32_t src_height,
62  uint32_t dst_width, uint32_t dst_height,
63  uint32_t channel, float threshold,
64  uint32_t argb32_px, uint32_t interpolation,
65  cudaStream_t stream);
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif
nvds_mask_utils_resize_to_binary_argb32
bool nvds_mask_utils_resize_to_binary_argb32(float *src, uint32_t *dst, uint32_t src_width, uint32_t src_height, uint32_t dst_width, uint32_t dst_height, uint32_t channel, float threshold, uint32_t argb32_px, uint32_t interpolation, cudaStream_t stream)
resize FP32 Tensor and apply threshold to create INT32 binary tensor Output INT32 tensor pixels are a...
cudaStream_t
struct CUstream_st * cudaStream_t
Forward declaration of cudaStream_t.
Definition: nvbufsurftransform.h:34