void Application::loop() { // Check for key input int key = cv::waitKey(20); switch (key) { case 's': makeScreenshots(); break; case 'c': clearOutputImage(); break; case 'q': m_isFinished = true; } // Grab new images from the Kinect's cameras m_depthCamera->frameFromCamera(m_rgbImage, m_depthImage, CV_16UC1); // Process the current frame processFrame(); // Display the images cv::imshow("raw", m_rgbImage); cv::imshow("depth", m_depthImage); cv::imshow("output", m_outputImage); }
void MainWindow::on_snapshotAllBtn_clicked() { makeScreenshots( ui->fpsSpinBox->value(), ui->durationCombo->value() ); }
void MainWindow::on_snapshotOneBtn_clicked() { makeScreenshots( 1, 1 ); }