I am usimg DM6437 and CCSV3.3. I am working on PAL system with resolution 720x576.
I want to do background subtraction using VLIB3_2_1_0.It required initialize and update variance.initialisation kernel is
int32_t | VLIB_initVarWithConstS16 (int16_t *restrict runningVar, const int16_t constVar, const uint32_t pixelCount) |
now what should be value of constVar?
Statistical background subtraction kernel is
int32_t | VLIB_subtractBackgroundS16 (uint32_t *restrict mask32packed, const uint8_t *restrict newLuma, const int16_t *restrict runningMean, const int16_t *restrict runningVar, const int16_t thresholdGlobal, const int16_t thresholdFactor, const uint32_t PixelCount) |
i have allocated for different variable as follows:
uint8_t newLuma[414720]; // 720*570=414720
int16_t runningMean[414720];
int16_t runningVar[414720];
uint32_t mask32packed[12960]; // 414720/32=12960 Is size of buffer right?
i have taken values of thresholdGlobal,thresholdFactor,PixelCount from VLIB_prototypes.h.
Can you tell me what is 32bitpacked mean?what output should i expect from mask32packed?
if i want to display background subtraction output on monitor what should i do?