NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
PVA_ALGOS_Morph

Detailed Description

Data Structures

struct  pvaAlgosMorphConfig_t
 Structure that holds configuration parameters for the morphological operation. More...
 
struct  pvaAlgosMorphIOBuffer_t
 Structure that holds I/O Buffers that change based on the frame inputs. More...
 

Typedefs

typedef struct MorphContext * pvaAlgosMorphContext_t
 Structure that stores internal objects needed for the Background subtractor. More...
 

Enumerations

enum  pvaAlgosMorphKernelShape_t {
  PVA_ALGOS_KERNEL_SHAPE_RECT,
  PVA_ALGOS_KERNEL_SHAPE_CROSS,
  PVA_ALGOS_KERNEL_SHAPE_MAX
}
 Enum for Kernel Shape. More...
 
enum  pvaAlgosMorphOperationType_t {
  PVA_ALGOS_MORPH_OPERATION_ERODE,
  PVA_ALGOS_MORPH_OPERATION_DILATE,
  PVA_ALGOS_MORPH_OPERATION_MAX
}
 Enum for Operation Type. More...
 

Functions

pvaAlgosError_t pvaAlgosMorphGetContext (pvaAlgosMorphContext_t *morphContext)
 Initializes MorphContext object and sends it back to the caller. More...
 
pvaAlgosError_t pvaAlgosMorphInit (pvaAlgosMorphContext_t *morphContext, pvaAlgosMorphConfig_t *morphParams)
 Initializes the necessary values for the internal objects in pvaAlgosMorphContext_t object. More...
 
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. More...
 
pvaAlgosError_t pvaAlgosMorphDeInit (pvaAlgosMorphContext_t *morphContext)
 Frees the internal objects and the MorphContext object. More...
 

Typedef Documentation

◆ pvaAlgosMorphContext_t

typedef struct MorphContext* pvaAlgosMorphContext_t

Structure that stores internal objects needed for the Background subtractor.

Definition at line 86 of file pva_algos_morph.h.

Enumeration Type Documentation

◆ pvaAlgosMorphKernelShape_t

Enum for Kernel Shape.

Enumerator
PVA_ALGOS_KERNEL_SHAPE_RECT 
PVA_ALGOS_KERNEL_SHAPE_CROSS 
PVA_ALGOS_KERNEL_SHAPE_MAX 

Definition at line 22 of file pva_algos_morph.h.

◆ pvaAlgosMorphOperationType_t

Enum for Operation Type.

Enumerator
PVA_ALGOS_MORPH_OPERATION_ERODE 
PVA_ALGOS_MORPH_OPERATION_DILATE 
PVA_ALGOS_MORPH_OPERATION_MAX 

Definition at line 34 of file pva_algos_morph.h.

Function Documentation

◆ pvaAlgosMorphDeInit()

pvaAlgosError_t pvaAlgosMorphDeInit ( pvaAlgosMorphContext_t morphContext)

Frees the internal objects and the MorphContext object.

Parameters
[in]morphContextThe pointer to a pvaAlgosMorphContext_t object that stores the internal parameters needed for Morphological operation
Returns
pvaAlgosError_t The completion status of the operation. Its value is pvaAlgosStatusSuccess if the operation is successful

◆ pvaAlgosMorphGetContext()

pvaAlgosError_t pvaAlgosMorphGetContext ( pvaAlgosMorphContext_t morphContext)

Initializes MorphContext object and sends it back to the caller.

Parameters
[in]MorphContextThe pointer to a pvaAlgosMorphContext_t object that stores the internal parameters needed for Morphological operation
Returns
pvaAlgosError_t The completion status of the operation. Its value is pvaAlgosStatusSuccess if the operation is successful

◆ pvaAlgosMorphInit()

pvaAlgosError_t pvaAlgosMorphInit ( pvaAlgosMorphContext_t morphContext,
pvaAlgosMorphConfig_t morphParams 
)

Initializes the necessary values for the internal objects in pvaAlgosMorphContext_t object.

Parameters
[in]morphContextThe pointer to a pvaAlgosMorphContext_t object that stores the internal parameters needed for Morphological operation
[in]morphParamsThe pointer to a pvaAlgosMorphConfig_t object
that stores the configuration parameters for Morphological operation
Returns
pvaAlgosError_t The completion status of the operation. Possible values are:

◆ 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.

Parameters
[in]morphContextThe pointer to a pvaAlgosMorphContext_t object that stores the internal parameters needed for Morphological operation
[in]morphBuffersThe pointer to a pvaAlgosMorphIOBuffer_t object that stores the I/O Buffers that change each frame
[in]postFenceThe pointer to a cupvaFence_t object needed for the synchronization across instructions sent to the PVA Engine
[in]instanceStreamThe pointer to a cupvaStream_t object needed to submit instructions to the PVA Engine
Returns
pvaAlgosError_t The completion status of the operation. Its value is pvaAlgosStatusSuccess if the operation is successful