How to i segment human body

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 comentarios

Image Analyst
Image Analyst el 19 de Mayo de 2018
What kind of control do you have over your image capture conditions? Can you have a light background and have your subject wear dark clothing? Can you use a better cyc?
Can you take a shot of just the background with no person in it first so you can determine the difference between your subject image and the background image?
What are those 3 rectangular green zones? What do they represent?
umut
umut el 20 de Mayo de 2018
the images used are taken from the kth data set so i can not do these. those boxes are for bounding the human body. But it is not working because segmentation is not correct
KALYAN ACHARJYA
KALYAN ACHARJYA el 20 de Mayo de 2018
Editada: KALYAN ACHARJYA el 20 de Mayo de 2018
Share the original input image
umut
umut el 20 de Mayo de 2018

Iniciar sesión para comentar.

Respuestas (0)

Preguntada:

el 19 de Mayo de 2018

Comentada:

el 20 de Mayo de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by