Developer Reference for Intel® Integrated Performance Primitives 2018

FGMMBackground

Returns the updated background image.

Syntax

IppStatus ippiFGMMBackground_8u_C3R(Ipp8u* pDst, int dstStep, IppiSize roi, IppFGMMState_8u_C3R* pState);

Include Files

ippcv.h

Domain Dependencies

Headers: ippcore.h, ippvm.h, ipps.h, ippi.h

Libraries: ippcore.lib, ippvm.lib, ipps.lib, ippi.lib

Parameters

pDst
Pointer to the three-channel background image.
dstStep
Distance, in bytes, between the starting points of consecutive lines in the destination image.
roi
Size of the source image ROI, in pixels.
pState
Pointer to the IppFGMMState_8u_C3R state structure.

Description

This function implements the Gaussian mixture model background subtraction described in [ZIVKOVIC04]. The function returns the three-channel Ipp8u background image.

Before using this function, you need to compute the size of the IppFGMMState_8u_C3R state structure and initialize the structure using the FGMMGetBufferSize and FGMMInit functions, respectively.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when pDst or pState is NULL.

ippStsSizeErr

Indicates an error when roi is less than, or equal to zero.

ippStsStepErr

Indicates an error when dstStep is less than, or equal to zero.

Example

FGMMBackground.c

See Also