From 24cc2c30e5510403652342fc5be18ce1723121da Mon Sep 17 00:00:00 2001 From: ludimation Date: Sat, 9 Nov 2013 12:09:04 -0500 Subject: [PATCH 1/2] COLORING_BLUES_INV >> white (fg) >> teal (mg) >> blue (bg) >> black. --- src/ofxOpenNIUtils.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/ofxOpenNIUtils.h b/src/ofxOpenNIUtils.h index a61dff6..0816077 100644 --- a/src/ofxOpenNIUtils.h +++ b/src/ofxOpenNIUtils.h @@ -110,6 +110,7 @@ enum DepthColoring { COLORING_RAINBOW, COLORING_CYCLIC_RAINBOW, COLORING_BLUES, + COLORING_BLUES_INV, COLORING_GREY, COLORING_STATUS, COLORING_COUNT @@ -442,6 +443,36 @@ inline void getDepthColor(DepthColoring depthColoring, const unsigned short & de color.r = 255; } break; + case COLORING_BLUES_INV: + // 3 bytes of depth: white (111) << cyan (011) < Date: Thu, 9 Oct 2014 11:42:08 -0400 Subject: [PATCH 2/2] Quick hack making joints public so that I can access them easily in project Harlequin. --- src/ofxOpenNITypes.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ofxOpenNITypes.h b/src/ofxOpenNITypes.h index 5c5f9a3..52f211d 100644 --- a/src/ofxOpenNITypes.h +++ b/src/ofxOpenNITypes.h @@ -449,13 +449,14 @@ class ofxOpenNIUser { //return *this; } - + + vector joints; // harlequin hack private: friend class ofxOpenNI; // so we can access directly in ofxOpenNI ofPoint center; - vector joints; +// vector joints; // harlequin hack vector limbs; ofMesh pointCloud[2]; ofMesh* backPointCloud;