50 #ifndef NV_VPI_ALGORITHMS_BACKGROUND_SUBTRACTOR_H
51 #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 for shadow.
float varThreshold
Threshold on the squared Mahalanobis distance between the pixel and the model to decide whether a pix...
VPIStatus vpiCreateBackgroundSubtractor(uint32_t backends, int32_t imageWidth, int32_t imageHeight, VPIImageFormat inputFormat, VPIPayload *payload)
Creates payload for vpiSubmitBackgroundSubtractor.
VPIStatus vpiInitBackgroundSubtractorParams(VPIBackgroundSubtractorParams *params)
Initializes VPIBackgroundSubtractorParams with default values.
VPIStatus vpiSubmitBackgroundSubtractor(VPIStream stream, uint32_t backend, VPIPayload payload, VPIImage inFrame, VPIImage outFGMask, VPIImage outBGImage, const VPIBackgroundSubtractorParams *params)
Submits a background subtractor operation to the stream associated with the given payload.
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.