I have created a program related to kinect in Processing IDE using SimpleOpenNI library, in which a simple image is displayed inside the user's silhouette.
This is the code:
depthValues=kinect.depthMap();
userMap = kinect.userMap();
for (int i =0; i < kinect.depthHeight(); i++) {
for (int j = 0; j < kinect.depthWidth(); j++) {
int index=j+i*kinect.depthWidth();
if (userMap[index] != 0) {
c = movie.pixels[index];
// PImage m=movie.get();
userImage.pixels[index]=color(c);
}
else{
userImage.pixels[index]=color(0);
}
}
}
But How can I display an image of any playing movie inside the user's silhouette ...
Can any one suggest me about this?