staticdiff: Static frame difference background subtraction algorithm.

Description Usage Arguments Value Examples

Description

This function implements a static background subtraction method in which background model is set to first frame. This static background model is then subtracted from all subsequent frames to obtain the forground images.

Usage

1
staticdiff(b, thresh)

Arguments

b

3-D matrix containing grayscaled video frames.

thresh

threshold required to obtain foreground images. Its value can lie between 30-40 or more depending upon the accuracy required.

Value

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

Examples

1
2
3
4
 
videoURL <- system.file("extdata","daria_skip.avi",package = "Rbgs")
frames <- readvideoframe(videoURL,1,9)
bground<-staticdiff(frames,35) 

Rbgs documentation built on May 1, 2019, 8:48 p.m.

Related to staticdiff in Rbgs...