How can I get the reference background image for each instance of video

4 ビュー (過去 30 日間)
Lajari
Lajari 2013 年 11 月 13 日
コメント済み: Image Analyst 2013 年 11 月 14 日
I am using the Matlab 2012 version with computer vision system toolbox. I have obtained the foreground mask for each frame in the video by system object i.e. vision.ForegroundDetector. For some pre-processing purpose I need the reference background image that is used by this system object for each instance of video. How can I obtain it? or Should I need to implement the foregroud detection algorithm myself?

回答 (2 件)

Anand
Anand 2013 年 11 月 13 日
Does this mean you would like the part of the background behind whatever the foreground object is? I don't think getting that is a feasible expectation from any foreground detection algorithm.
Here's why:
Say you have a video of a man standing behind a table, completely covering the table. Foreground detection can determine the man being the foreground object because of movement but there's no way to tell that there's a table behind the man given that there's no image evidence of the table existing.
If my understanding of your question is incorrect, please explain it some more.
Hope that helps.
  1 件のコメント
Lajari
Lajari 2013 年 11 月 14 日
I have set the parameter 'NumTrainingFrames' to 5 for the system object vision.ForegroundDetector. That means detection algorithm uses first 5 frame for modelling initial background. This background is updated for every next frame.I only know that system object uses the gaussian mixture modelling for building the foreground mask for every frame.but I need to know the updated reference background that is used by the algorithm for every instance of the video for detecting the foreground mask.

サインインしてコメントする。


Image Analyst
Image Analyst 2013 年 11 月 13 日
If you assume that the background is the plain scene with no objects, and the foreground are objects that pass through (cars, people, etc.). You might assume that the background is the mode of all the frames. I think that a lot of people use Gaussian Mixture Models to do this kind of foreground/background discrimination.
  2 件のコメント
Lajari
Lajari 2013 年 11 月 14 日
I have set the parameter 'NumTrainingFrames' to 5 for the system object vision.ForegroundDetector. That means detection algorithm uses first 5 frame for modelling initial background. This background is updated for every next frame.I only know that system object uses the gaussian mixture modelling for building the foreground mask for every frame.but I need to know the updated reference background that is used by the algorithm for every instance of the video for detecting the foreground mask.
Image Analyst
Image Analyst 2013 年 11 月 14 日
Sorry, I don't have the Computer Vision System Toolbox. You can call the Mathworks for advice.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by