NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
pva_algos_morph.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2024, 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 
11 #ifndef PVA_ALGOS_MORPH
12 #define PVA_ALGOS_MORPH
13 
14 #include <pva_algos_common.h>
15 struct MorphContext;
16 
22 typedef enum
23 {
28 
34 typedef enum
35 {
40 
46 typedef struct
47 {
49  uint32_t imageWidth;
51  uint32_t imageHeight;
53  uint32_t linePitch;
55  uint32_t outputLinePitch;
59  uint32_t knlSize;
65 
72 typedef struct
73 {
75  void *imageIn;
77  void *imageOut;
79 
86 typedef struct MorphContext *pvaAlgosMorphContext_t;
87 
105 
120 
138  cupvaStream_t *instanceStream, int execTimeout);
139 
151 
153 #endif //PVA_ALGOS_MORPH
PVA_ALGOS_KERNEL_SHAPE_CROSS
@ PVA_ALGOS_KERNEL_SHAPE_CROSS
Definition: pva_algos_morph.h:25
PVA_ALGOS_KERNEL_SHAPE_RECT
@ PVA_ALGOS_KERNEL_SHAPE_RECT
Definition: pva_algos_morph.h:24
pvaAlgosMorphConfig_t
Structure that holds configuration parameters for the morphological operation.
Definition: pva_algos_morph.h:46
cupvaStream_t
void * cupvaStream_t
Dummy definition for non PVA supported platforms.
Definition: PVA.h:29
pvaAlgosMorphConfig_t::imageHeight
uint32_t imageHeight
Input image height.
Definition: pva_algos_morph.h:51
pvaAlgosMorphDeInit
pvaAlgosError_t pvaAlgosMorphDeInit(pvaAlgosMorphContext_t *morphContext)
Frees the internal objects and the MorphContext object.
PVA_ALGOS_MORPH_OPERATION_ERODE
@ PVA_ALGOS_MORPH_OPERATION_ERODE
Definition: pva_algos_morph.h:36
pvaAlgosMorphConfig_t::shape
pvaAlgosMorphKernelShape_t shape
Shape of the kernel.
Definition: pva_algos_morph.h:57
pvaAlgosMorphConfig_t::imageWidth
uint32_t imageWidth
Input image width.
Definition: pva_algos_morph.h:49
PVA_ALGOS_KERNEL_SHAPE_MAX
@ PVA_ALGOS_KERNEL_SHAPE_MAX
Definition: pva_algos_morph.h:26
pvaAlgosMorphProcess
pvaAlgosError_t pvaAlgosMorphProcess(pvaAlgosMorphContext_t *morphContext, pvaAlgosMorphIOBuffer_t *morphBuffers, cupvaStream_t *instanceStream, int execTimeout)
Sets the I/O Buffers to the internal objects and runs the Morphological operation Algorithm.
PVA_ALGOS_MORPH_OPERATION_DILATE
@ PVA_ALGOS_MORPH_OPERATION_DILATE
Definition: pva_algos_morph.h:37
pvaAlgosMorphGetContext
pvaAlgosError_t pvaAlgosMorphGetContext(pvaAlgosMorphContext_t *morphContext)
Initializes MorphContext object and sends it back to the caller.
pvaAlgosMorphConfig_t::linePitch
uint32_t linePitch
Input image line pitch.
Definition: pva_algos_morph.h:53
pvaAlgosMorphInit
pvaAlgosError_t pvaAlgosMorphInit(pvaAlgosMorphContext_t *morphContext, pvaAlgosMorphConfig_t *morphParams)
Initializes the necessary values for the internal objects in pvaAlgosMorphContext_t object.
pvaAlgosMorphContext_t
struct MorphContext * pvaAlgosMorphContext_t
Structure that stores internal objects needed for the Background subtractor.
Definition: pva_algos_morph.h:86
pva_algos_common.h
pvaAlgosMorphIOBuffer_t::imageIn
void * imageIn
In: Input image pointer.
Definition: pva_algos_morph.h:75
pvaAlgosMorphConfig_t::op
pvaAlgosMorphOperationType_t op
Operation type on the input.
Definition: pva_algos_morph.h:61
pvaAlgosMorphKernelShape_t
pvaAlgosMorphKernelShape_t
Enum for Kernel Shape.
Definition: pva_algos_morph.h:22
PVA_ALGOS_MORPH_OPERATION_MAX
@ PVA_ALGOS_MORPH_OPERATION_MAX
Definition: pva_algos_morph.h:38
pvaAlgosMorphConfig_t::knlSize
uint32_t knlSize
Size of the kernel.
Definition: pva_algos_morph.h:59
pvaAlgosDtype_t
pvaAlgosDtype_t
Datatypes commonly used by PVA Algos.
Definition: pva_algos_common.h:39
pvaAlgosMorphConfig_t::outputLinePitch
uint32_t outputLinePitch
Output image line pitch.
Definition: pva_algos_morph.h:55
pvaAlgosError_t
pvaAlgosError_t
Possible error codes returned by PVA Algos.
Definition: pva_algos_common.h:25
pvaAlgosMorphIOBuffer_t
Structure that holds I/O Buffers that change based on the frame inputs.
Definition: pva_algos_morph.h:72
pvaAlgosMorphConfig_t::dtype
pvaAlgosDtype_t dtype
Input datatype.
Definition: pva_algos_morph.h:63
pvaAlgosMorphIOBuffer_t::imageOut
void * imageOut
Out: Output image pointer.
Definition: pva_algos_morph.h:77
pvaAlgosMorphOperationType_t
pvaAlgosMorphOperationType_t
Enum for Operation Type.
Definition: pva_algos_morph.h:34