Loading src/ofApp.cpp +4 −15 Original line number Diff line number Diff line Loading @@ -247,10 +247,12 @@ void ofApp::update(){ #ifdef BLOB if(realSense->update(ofxRealSenseTwo::PointCloud::VIDEO)) { if (bUpdateImageMask) { if (maskUpdatesCounter < MASK_UPDATE_CYCLES) { tracker.captureMaskBegin(); drawCapturePointCloud(true); tracker.captureMaskEnd(); maskUpdatesCounter++; } else { // Cature captureCloud to FBO tracker.captureBegin(); Loading Loading @@ -443,13 +445,9 @@ void ofApp::createHelp(){ helpStream << "press v -> to show visualizations\n"; helpStream << "press 1 - 3 -> to change the viewport\n"; helpStream << "press p -> to show pointcloud\n"; helpStream << "\n"; helpStream << "press h -> to show help \n"; helpStream << "press s -> to save current settings.\n"; helpStream << "press l -> to load last saved settings\n"; #ifdef BLOB helpStream << "press m -> to update mask image (currently" << (bUpdateImageMask ? " " : " not ") << "updating)\n"; #endif help = helpStream.str(); } Loading Loading @@ -483,15 +481,6 @@ void ofApp::keyPressed(int key){ } break; case 'm': #ifdef BLOB bUpdateImageMask = !bUpdateImageMask; if (bUpdateImageMask) { tracker.clearMask(); } #endif break; case '1': iMainCamera = 0; break; Loading src/ofApp.h +2 −1 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ #define REALSENSE_VIDEO_WIDTH 848 #define REALSENSE_VIDEO_HEIGHT 480 #define MASK_UPDATE_CYCLES 100 #define N_MEASURMENT_CYCLES 10 using namespace std; Loading Loading @@ -113,7 +114,7 @@ public: ofShader shader; BlobFinder tracker; bool bUpdateImageMask = false; int maskUpdatesCounter = 0; #else Loading Loading
src/ofApp.cpp +4 −15 Original line number Diff line number Diff line Loading @@ -247,10 +247,12 @@ void ofApp::update(){ #ifdef BLOB if(realSense->update(ofxRealSenseTwo::PointCloud::VIDEO)) { if (bUpdateImageMask) { if (maskUpdatesCounter < MASK_UPDATE_CYCLES) { tracker.captureMaskBegin(); drawCapturePointCloud(true); tracker.captureMaskEnd(); maskUpdatesCounter++; } else { // Cature captureCloud to FBO tracker.captureBegin(); Loading Loading @@ -443,13 +445,9 @@ void ofApp::createHelp(){ helpStream << "press v -> to show visualizations\n"; helpStream << "press 1 - 3 -> to change the viewport\n"; helpStream << "press p -> to show pointcloud\n"; helpStream << "\n"; helpStream << "press h -> to show help \n"; helpStream << "press s -> to save current settings.\n"; helpStream << "press l -> to load last saved settings\n"; #ifdef BLOB helpStream << "press m -> to update mask image (currently" << (bUpdateImageMask ? " " : " not ") << "updating)\n"; #endif help = helpStream.str(); } Loading Loading @@ -483,15 +481,6 @@ void ofApp::keyPressed(int key){ } break; case 'm': #ifdef BLOB bUpdateImageMask = !bUpdateImageMask; if (bUpdateImageMask) { tracker.clearMask(); } #endif break; case '1': iMainCamera = 0; break; Loading
src/ofApp.h +2 −1 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ #define REALSENSE_VIDEO_WIDTH 848 #define REALSENSE_VIDEO_HEIGHT 480 #define MASK_UPDATE_CYCLES 100 #define N_MEASURMENT_CYCLES 10 using namespace std; Loading Loading @@ -113,7 +114,7 @@ public: ofShader shader; BlobFinder tracker; bool bUpdateImageMask = false; int maskUpdatesCounter = 0; #else Loading