NVIDIA DeepStream SDK API Reference

6.4 Release
nvds_mask_utils.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA Corporation and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA Corporation is strictly prohibited.
9  */
10 
18 #ifndef _NVDS_MAKS_UTILS_H_
19 #define _NVDS_MAKS_UTILS_H_
20 
21 #include <cuda_runtime.h>
22 #include <stdint.h>
23 #include <stdbool.h>
24 
25 #ifdef __cplusplus
26 extern "C"
27 {
28 #endif
29 
58 bool nvds_mask_utils_resize_to_binary_argb32(float *src, uint32_t* dst,
59  uint32_t src_width, uint32_t src_height,
60  uint32_t dst_width, uint32_t dst_height,
61  uint32_t channel, float threshold,
62  uint32_t argb32_px, uint32_t interpolation,
63  cudaStream_t stream);
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #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:29