Hand segmentation from an RGB and depth image obtained from kinect device
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi all. I am trying to use the dataset from this paper and segment hand from the image. I attach a sample RGB and depth image. I have written this code.
close all;
depth_map=load('3.txt');
imagesc(depth_map);
image=imread('4.jpg');
figur;imshow(image);
foo=depth_map;
min_v=min(foo(foo>0));
threshold=min_v+100;%threshold - varying this is not helping much but ofcourse will deteriorate
foo(foo>threshold)=0;
BW=imbinarize(foo);
figure; imshow(BW);%shown in result3.jpg file.
The result is shown in the result3,jpg file which is attached. As you can see even elbow comes. How do I segment just the hand? I am relatively new to RGB and depth images and kinect. Any help is greatly appreciated.
5 comentarios
Shyam verma
el 9 de Jun. de 2021
Hey! can you give the dataset as the link that you mentioned above for dataset is not working/showing error.
with regards
shyamverma345@gmail.com
Respuestas (1)
Image Analyst
el 19 de Ag. de 2017
If the person always has a black wrist band, then you should have 2 blobs, not 1, and then you can use bwareafilt() to extract the largest one, which will be the forearm, and then subtract that from the original mask to get only the hand.
forearmMask = bwareafilt(binaryImage, 1);
handMask = binaryImage & ~forearmMask;
Ver también
Categorías
Más información sobre Kinect For Windows Sensor en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!