NVIDIA DeepStream SDK API Reference

6.0.1 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
92 bool nvds_mask_utils_resize_to_binary_uint8(float *src, uint8_t* dst,
93  uint32_t src_width, uint32_t src_height,
94  uint32_t dst_width, uint32_t dst_height,
95  uint32_t channel, float threshold,
96  uint32_t interpolation,
97  cudaStream_t stream);
98 
99 #ifdef __cplusplus
100 }
101 #endif
102 
103 #endif
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...
bool nvds_mask_utils_resize_to_binary_uint8(float *src, uint8_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 interpolation, cudaStream_t stream)
resize FP32 Tensor and apply threshold to create INT8 binary tensor Output INT8 tensor pixels are ass...