Advertisement

Kinect获取深度图像数据(第三版)

阅读量:

以下内容仍参照小斤的博客进行说明(看起来与原文几乎完全一致,令人有些尴尬)

复制代码
  
    
  
    
 #include <stdlib.h>
    
 #include <iostream>
    
 #include <string>
    
 #include "OpenNI.h"
    
  
    
 #include "opencv2/core/core.hpp"
    
 #include "opencv2/highgui/highgui.hpp"
    
 #include "opencv2/imgproc/imgproc.hpp"
    
  
    
 using namespace std;
    
 using namespace cv;
    
 using namespace openni;
    
  
    
 #define Capture
    
 //#define Show
    
 //检查OPenNI是否初始化成功
    
 void CheckOpenNIError(Status result, string status)
    
 {
    
 	if (result != STATUS_OK)
    
 		cerr << status << " Error: " << Ope

全部评论 (0)

还没有任何评论哟~