We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi All,
I am working on a project regarding displaying only the user's Image by kinect. (something like greenscreen). And this forum is teaching me very well... But for one thing I got trouble since last week...
Everything is working fine, But for making a smooth user's contour (edges) , I can't give any (smooth) stroke to user's contour. what should I do for that???
I have tried a lot for this...
I think something is wrong in my code..
please help and give me a nice start to work with kinect, coz this is the primary stage for me ,,, that all i can say..
Here is my code ,
rgbImage=kinect.rgbImage();
userMap = kinect.userMap();
for (int i =0; i < kinect.depthHeight(); i++) {
for (int j = 0; j < kinect.depthWidth(); j++) {
int index=j+i*640;
if (userMap[index] != 0) {
color c = rgbImage.pixels[index];
userImage.pixels[index]=color(c);
}
else{
color c1=backgroundImage.pixels[index];
userImage.pixels[index]=color(c1);
}
}
}
userImage.updatePixels();
image(userImage,0,0);