How to i segment human body

3 views (last 30 days)
umut
umut on 19 May 2018
Commented: umut on 20 May 2018
I need to segment human body. I can segment light-colored and shadowless pictures. But if image has dark color and shadow it's not working
I=rgb2gray(I);
I=adapthisteq(I);
BW = im2bw(I,0.4);
yourbwimage = logical(1 - BW);
BW2 = bwareaopen(yourbwimage, 500);
se = strel('disk',3);
foreground1 = imclose(BW2,se);
How can i segment dark colored-shadow frame.
  4 Comments
KALYAN ACHARJYA
KALYAN ACHARJYA on 20 May 2018
Edited: KALYAN ACHARJYA on 20 May 2018
Share the original input image

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!