1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Added enviroment search paths for OpenNI2 for linux and fixed specific warning

This commit is contained in:
Maksim Shabunin
2014-12-23 17:10:33 +03:00
parent 1bdd86edeb
commit 128e509527
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -821,10 +821,10 @@ IplImage* CvCapture_OpenNI2::retrieveValidDepthMask()
if (!depthFrame.isValid())
return 0;
cv::Mat depth;
getDepthMapFromMetaData(depthFrame, depth, noSampleValue, shadowValue);
cv::Mat d;
getDepthMapFromMetaData(depthFrame, d, noSampleValue, shadowValue);
outputMaps[CV_CAP_OPENNI_VALID_DEPTH_MASK].mat = depth != CvCapture_OpenNI2::INVALID_PIXEL_VAL;
outputMaps[CV_CAP_OPENNI_VALID_DEPTH_MASK].mat = d != CvCapture_OpenNI2::INVALID_PIXEL_VAL;
return outputMaps[CV_CAP_OPENNI_VALID_DEPTH_MASK].getIplImagePtr();
}