Description Usage Arguments Value
This function calculates the variance of previous nf number of frames and obtains the foreground by subtracting the variance obtained from the current frame.
1 | varbgs(b, nf, thresh)
|
b |
3-D matrix containing grayscaled video frames. |
nf |
number of frames to be considered to construct background model. Its value has to be greater greater than 1. Smaller value gives better results. |
thresh |
threshold required to obtain foreground images.Its value can be around 220. |
A 3-D matrix of frames containing foreground obtained after background subtraction is applied(binary images).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.