Learn R Programming

Rbgs (version 0.2)

wtmean: Weighted Mean background subtraction algorithm

Description

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

Usage

wtmean(b, nf, thresh)

Arguments

b

3-D matrix containing grayscaled video frames.

nf

It is size of buffer that contains previous frames and its value can be set to three only.

thresh

threshold required to obtain foreground images.Its value can be around 10 - 30.

Value

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