What is the best way to separate foreground image and background image?

11 views (last 30 days)
Aj_ti
Aj_ti on 21 Nov 2016
Edited: Aj_ti on 21 Nov 2016
image1
image2
Based on the image2, how can I get only the human image by converting all the background pixels into black or white? I try manual thresholding however I can't get smooth foreground image and the mask image will varied(due to illumination) since i'm working with image sequence. And I try to get rare pixels on the human images only (by subtracting the background image and foreground image (HSV)) as shown in image1. However I have no idea on how to extract only the obvious pixels region.

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by