How to remove the background of the person image?

4 views (last 30 days)
I have two images, one contains the person and one is its background. The two photos were taken twice, so there was a slight deviation.
I want to remove the background of the photo that contains people, I mean, remove everything from the background photo.
Do you have any way to do this? Please guide me, because I am a beginner with Matlab. Thank you.
(all images in attached)

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 3 Sep 2019
Edited: KALYAN ACHARJYA on 4 Sep 2019
I suppose you can do it, using K-means clustering technique. I dont have Matlab 2018b, hence unabled to test it.
See here
  2 Comments
Ai Nguyen
Ai Nguyen on 4 Sep 2019
Thanks for your help. I have read the article and found it useful, I will try it now. I will use K-menas clustering technique on the background image to find objects and then delete those objects on the image containing people. so true?
KALYAN ACHARJYA
KALYAN ACHARJYA on 4 Sep 2019
K-means cetegories the input image to k regions only, you can extract the regions, those are required.
Good Luck!

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!