diff --git a/src/ofxKinectCommonBridge.cpp b/src/ofxKinectCommonBridge.cpp index 2291ec8..256a031 100644 --- a/src/ofxKinectCommonBridge.cpp +++ b/src/ofxKinectCommonBridge.cpp @@ -22,7 +22,8 @@ ofxKinectCommonBridge::ofxKinectCommonBridge(){ bVideoIsInfrared = false; bInited = false; bStarted = false; - + bNearWhite = true; + mappingColorToDepth = false; mappingDepthToColor = false; @@ -75,6 +76,11 @@ void ofxKinectCommonBridge::setDepthClipping(float nearClip, float farClip){ updateDepthLookupTable(); } +//--------------------------------------------------------------------------- +void ofxKinectCommonBridge::setNearWhite(bool nearWhite) { + bNearWhite = nearWhite; +} + //--------------------------------------------------------------------------- void ofxKinectCommonBridge::updateDepthLookupTable() { diff --git a/src/ofxKinectCommonBridge.h b/src/ofxKinectCommonBridge.h index 17f22d8..f1b542c 100644 --- a/src/ofxKinectCommonBridge.h +++ b/src/ofxKinectCommonBridge.h @@ -72,6 +72,7 @@ class ofxKinectCommonBridge : protected ofThread { bool initBodyIndexStream(); void setDepthClipping(float nearClip=500, float farClip=4000); + void setNearWhite(bool nearWhite); /// updates the pixel buffers and textures ///