Description Usage Arguments Value Examples
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.
1 | staticdiff(b, thresh)
|
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. |
A 3-D matrix of frames containing foreground obtained after background subtraction is applied(binary images).
1 2 3 4 |
videoURL <- system.file("extdata","daria_skip.avi",package = "Rbgs")
frames <- readvideoframe(videoURL,1,9)
bground<-staticdiff(frames,35)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.