Background and Foreground separation.
6 次查看(过去 30 天)
显示 更早的评论
I try to separate the foreground and background picture. The picture is two people are standing by the sea. How to separate the back ground and foreground. I use the color threshold but I got confused.Please help me out.
4 个评论
Image Analyst
2020-6-15
And what is background and what is foreground? The beach, the sea, the people, the sky?
回答(1 个)
Image Analyst
2020-6-28
Try this to mask your image
% Mask the image using bsxfun() function to multiply the mask by each channel individually. Works for gray scale as well as RGB Color images.
maskedRgbImage = bsxfun(@times, rgbImage, cast(mask, 'like', rgbImage));
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing and Computer Vision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!