mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
Merge pull request #3539 from mshabunin:openni-linux-paths
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user