private void colorButton_Click(object sender, EventArgs e) { // Do nothing after the depth image is ready kinectController.clearEventDepthReady(); // Show the image after the color image is ready KinectTracker.afterReady a = drawColorImage; kinectController.setEventColorReady(a); }
private void depthButton_Click(object sender, EventArgs e) { // int img_count = 0; // Do nothing after the Camera color image is ready kinectController.clearEventColorReady(); // After the depth image is ready and the tracking done KinectTracker.afterReady a = drawDepthImage; // Show the depth image // img_count += 1; Application.DoEvents(); //if (KinectTracker.img_count % 5 == 0) //{ a = a + showNumberFingers; // Show the number of fingers //} kinectController.setEventDepthReady(a); }