56 #ifndef NV_VPI_ALGORITHMS_BACKGROUND_SUBTRACTOR_H
57 #define NV_VPI_ALGORITHMS_BACKGROUND_SUBTRACTOR_H
59 #include "../Export.h"
60 #include "../Status.h"
uint8_t detectShadow
The algorithm will detect shadows and mark them if this is set to non-zero value.
float learningRate
Learning rate that indicates how fast the background model is learnt.
uint8_t shadowPixelValue
Pixel value representing shadow.
float varThreshold
Threshold on the squared Mahalanobis distance between the pixel and the model to decide whether a pix...
VPIStatus vpiSubmitBackgroundSubtractor(VPIStream stream, uint64_t backend, VPIPayload payload, VPIImage inFrame, VPIImage outFGMask, VPIImage outBGImage, const VPIBackgroundSubtractorParams *params)
Submits a Background Subtractor operation to the stream.
VPIStatus vpiInitBackgroundSubtractorParams(VPIBackgroundSubtractorParams *params)
Initializes VPIBackgroundSubtractorParams with default values.
VPIStatus vpiCreateBackgroundSubtractor(uint64_t backends, int32_t imageWidth, int32_t imageHeight, VPIImageFormat inputFormat, VPIPayload *payload)
Creates payload for vpiSubmitBackgroundSubtractor.
Structure that defines the parameters for vpiCreateBackgroundSubtractor.
struct VPIImageImpl * VPIImage
A handle to an image.
struct VPIPayloadImpl * VPIPayload
A handle to an algorithm payload.
struct VPIStreamImpl * VPIStream
A handle to a stream.