Learn R Programming

Rbgs (version 0.2)

eigenbgs: Eigen background subtraction algorithm

Description

This function uses previous frames to construct a background model in eigen space. This eigen background model is then subtracted from current frame to obtain the foreground images.

Usage

eigenbgs(b, nf, thresh)

Arguments

b

3-D matrix containing grayscaled video frames.

nf

Number of previous frames to be considered. Its value has to be greater than 1.

thresh

threshold required to obtain foreground images.value of thresh can be set to 10 - 15 approximately.

Value

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