|
|
NVIDIA DriveOS Linux NSR SDK API Reference
|
7.0.3.0 Release
|
Go to the documentation of this file.
10 #ifndef PVA_ALGOS_MOG_BACKGROUND_SUBTRACTOR
11 #define PVA_ALGOS_MOG_BACKGROUND_SUBTRACTOR
15 struct MogBackgroundSubtractorContext;
142 #endif //PVA_ALGOS_MOG_BACKGROUND_SUBTRACTOR
float noise
Noise value for MOG.
pvaAlgosError_t pvaAlgosMogBackgroundSubtractorDeInit(pvaAlgosMogBackgroundSubtractorContext_t *mogContext)
Frees the internal objects and the MogBackgroundSubtractorContext object.
void * cupvaStream_t
Dummy definition for non PVA supported platforms.
float alpha
alpha value for MOG.
uint32_t imageWidth
Input image width.
float thresh
Threshold value for MOG.
uint32_t linePitch
Input image line pitch.
void * imageIn
In: Input image pointer.
pvaAlgosDtype_t dtype
Input datatype.
float learningRate
Learning rate for MOG.
void * fgImage
Out: Output foreground image pointer.
pvaAlgosError_t pvaAlgosMogBackgroundSubtractorInit(pvaAlgosMogBackgroundSubtractorContext_t *mogContext, pvaAlgosMogBackgroundSubtractorConfig_t *mogParams)
Initializes the necessary values for the internal objects in pvaAlgosMogBackgroundSubtractorContext_t...
Structure that holds configuration parameters for the mog background subtractor.
uint32_t fgPitch
foreground image line pitch.
uint32_t channels
Number of color channels in input.
Structure that holds I/O Buffers that change based on the frame inputs.
pvaAlgosError_t pvaAlgosMogBackgroundSubtractorProcess(pvaAlgosMogBackgroundSubtractorContext_t *mogContext, pvaAlgosMogBackgroundSubtractorIOBuffer_t *mogBuffers, cupvaStream_t *instanceStream, int execTimeout)
Sets the I/O Buffers to the internal objects and runs the Background subtractor Algorithm.
pvaAlgosError_t pvaAlgosMogBackgroundSubtractorGetContext(pvaAlgosMogBackgroundSubtractorContext_t *mogContext)
Initializes MogBackgroundSubtractorContext object and sends it back to the caller.
void * bgImage
Out: Output background image pointer.
uint32_t bgPitch
background image line pitch.
struct MogBackgroundSubtractorContext * pvaAlgosMogBackgroundSubtractorContext_t
Structure that stores internal objects needed for the Background subtractor.
pvaAlgosDtype_t
Datatypes commonly used by PVA Algos.
uint32_t imageHeight
Input image height.
pvaAlgosError_t
Possible error codes returned by PVA Algos.
float bgRatio
Background ratio values for MOG.