Learn R Programming

Rbgs (version 0.2)

wtvar: Weighted variance background subtraction algorithm

Description

This function calculates the weighted variance of previous three frames. The buffer maintained here can contain only three frames.

Usage

wtvar(b, nf, thresh)

Arguments

b

3-D matrix containing grayscaled video frames.

nf

previous number of frames to be considered to build background.

thresh

threshold required to obtain foreground images.Its value can be set to 180-230 or more approximately.

Value

A 3-D matrix of frames containing foreground obtained after background subtraction is applied(binary images).