segment image between foreground and background

조회 수: 5 (최근 30일)
Muhammad Shazmil Bin Mohd Sabilan
댓글: Image Analyst 2022년 9월 13일
I have this sillhouttes images and i want to segment the image between the foreground and background. Can anyone help?

채택된 답변

Image Analyst
Image Analyst 2022년 9월 11일
Looks like your segmentation is not so good, or it's only partially finished. But you only attached the segmented image, not the original one. It looks like a frame from a video. In that case you can find the background frame fairly easily, then subtract it from your actual frame with imabsdiff. If you know there are only a certain number of people in the frame or if you want to throw out blobs smaller than a certain size you can use bwareafilt.
There is also a foreground detector in the Computer Vision Toolbox, as well as grabcut, lazysnapping, and activecontour in the Image Processing Toolbox. Try them.
  댓글 수: 2
Muhammad Shazmil Bin Mohd Sabilan
Thank you sir, I already can remove the bacground using imabsdiff. and then i filter the image using medfilt2 and then remove object that smaller than 300 using bwareopen.
Image Analyst
Image Analyst 2022년 9월 13일
Glad that my suggestions solved it for you. Can you please then click the "Accept this answer" link? Thanks in advance.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by