|
28 | 28 | #include <iostream>
|
29 | 29 | #include <signal.h>
|
30 | 30 |
|
31 |
| -#include <opencv2/opencv.hpp> |
| 31 | +//#include <opencv2/opencv.hpp> |
32 | 32 |
|
33 | 33 | #include <libfreenect2/libfreenect2.hpp>
|
34 | 34 | #include <libfreenect2/frame_listener_impl.h>
|
@@ -142,16 +142,16 @@ int main(int argc, char *argv[])
|
142 | 142 | libfreenect2::Frame *ir = frames[libfreenect2::Frame::Ir];
|
143 | 143 | libfreenect2::Frame *depth = frames[libfreenect2::Frame::Depth];
|
144 | 144 |
|
145 |
| - cv::imshow("rgb", cv::Mat(rgb->height, rgb->width, CV_8UC4, rgb->data)); |
146 |
| - cv::imshow("ir", cv::Mat(ir->height, ir->width, CV_32FC1, ir->data) / 20000.0f); |
147 |
| - cv::imshow("depth", cv::Mat(depth->height, depth->width, CV_32FC1, depth->data) / 4500.0f); |
| 145 | + //cv::imshow("rgb", cv::Mat(rgb->height, rgb->width, CV_8UC4, rgb->data)); |
| 146 | + //cv::imshow("ir", cv::Mat(ir->height, ir->width, CV_32FC1, ir->data) / 20000.0f); |
| 147 | + //cv::imshow("depth", cv::Mat(depth->height, depth->width, CV_32FC1, depth->data) / 4500.0f); |
148 | 148 |
|
149 | 149 | registration->apply(rgb,depth,&undistorted,®istered);
|
150 | 150 |
|
151 |
| - cv::imshow("undistorted", cv::Mat(undistorted.height, undistorted.width, CV_32FC1, undistorted.data) / 4500.0f); |
152 |
| - cv::imshow("registered", cv::Mat(registered.height, registered.width, CV_8UC4, registered.data)); |
| 151 | + //cv::imshow("undistorted", cv::Mat(undistorted.height, undistorted.width, CV_32FC1, undistorted.data) / 4500.0f); |
| 152 | + //cv::imshow("registered", cv::Mat(registered.height, registered.width, CV_8UC4, registered.data)); |
153 | 153 |
|
154 |
| - int key = cv::waitKey(1); |
| 154 | + int key = 1;//cv::waitKey(1); |
155 | 155 | protonect_shutdown = protonect_shutdown || (key > 0 && ((key & 0xFF) == 27)); // shutdown on escape
|
156 | 156 |
|
157 | 157 | listener.release(frames);
|
|
0 commit comments