Merge pull request #3539 from mshabunin:openni-linux-paths
This commit is contained in:
commit
f85838087a
@ -21,8 +21,8 @@ if(WIN32)
|
|||||||
find_library(OPENNI2_LIBRARY "OpenNI2" PATHS $ENV{OPENNI2_LIB64} DOC "OpenNI2 library")
|
find_library(OPENNI2_LIBRARY "OpenNI2" PATHS $ENV{OPENNI2_LIB64} DOC "OpenNI2 library")
|
||||||
endif()
|
endif()
|
||||||
elseif(UNIX OR APPLE)
|
elseif(UNIX OR APPLE)
|
||||||
find_file(OPENNI2_INCLUDES "OpenNI.h" PATHS "/usr/include/ni2" "/usr/include/openni2" DOC "OpenNI2 c++ interface header")
|
find_file(OPENNI2_INCLUDES "OpenNI.h" PATHS "/usr/include/ni2" "/usr/include/openni2" $ENV{OPENNI2_INCLUDE} DOC "OpenNI2 c++ interface header")
|
||||||
find_library(OPENNI2_LIBRARY "OpenNI2" PATHS "/usr/lib" DOC "OpenNI2 library")
|
find_library(OPENNI2_LIBRARY "OpenNI2" PATHS "/usr/lib" $ENV{OPENNI2_REDIST} DOC "OpenNI2 library")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(OPENNI2_LIBRARY AND OPENNI2_INCLUDES)
|
if(OPENNI2_LIBRARY AND OPENNI2_INCLUDES)
|
||||||
|
@ -821,10 +821,10 @@ IplImage* CvCapture_OpenNI2::retrieveValidDepthMask()
|
|||||||
if (!depthFrame.isValid())
|
if (!depthFrame.isValid())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
cv::Mat depth;
|
cv::Mat d;
|
||||||
getDepthMapFromMetaData(depthFrame, depth, noSampleValue, shadowValue);
|
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();
|
return outputMaps[CV_CAP_OPENNI_VALID_DEPTH_MASK].getIplImagePtr();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user