How to remove the background of the person image?

4 次查看(过去 30 天)
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)

回答(1 个)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019-9-3
编辑:KALYAN ACHARJYA 2019-9-4
I suppose you can do it, using K-means clustering technique. I dont have Matlab 2018b, hence unabled to test it.
See here
  2 个评论
Ai Nguyen
Ai Nguyen 2019-9-4
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 2019-9-4
K-means cetegories the input image to k regions only, you can extract the regions, those are required.
Good Luck!

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by