background subtraction in video or image
古いコメントを表示
I want to background subtraction from video or image and I don't have any background image without foreground objects. Can any body give me code for that? I attached a sample of images.
採用された回答
その他の回答 (2 件)
Image Analyst
2015 年 6 月 1 日
0 投票
Then you'll have to estimate it. For example, find the foreground objects somehow and then estimate the background by using roifill() to fill in where the foreground objects are. But if you can do that, then maybe you don't even need to subtract the background. Why don't you attach a couple of frames from your video and tell us what you want and don't want?
4 件のコメント
mary khaliji
2015 年 6 月 1 日
編集済み: Image Analyst
2015 年 6 月 1 日
Image Analyst
2015 年 6 月 1 日
The Computer Vision System Toolbox has utilities for that. I don't have that toolbox.
mary khaliji
2015 年 6 月 1 日
Image Analyst
2015 年 6 月 1 日
You have to first find the foreground objects so you have a binary image of the foreground, then you can fill them in. I suggest you follow up on Dima's answer as that is the best way.
RAJASHEKHARA REDDY
2017 年 1 月 13 日
if true
% code
end
カテゴリ
ヘルプ センター および File Exchange で Computer Vision Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
