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!