From 11cf4795dda7cff1f0901d37edac9a0a6d806934 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 29 Jan 2013 17:46:57 +0000 Subject: accumulation set default --- bin/data/settings.xml | 2 +- figgis_detect.layout | 8 ++++---- figgis_detect.workspace | 9 --------- src/testApp.cpp | 9 +++++---- 4 files changed, 10 insertions(+), 18 deletions(-) delete mode 100755 figgis_detect.workspace diff --git a/bin/data/settings.xml b/bin/data/settings.xml index 3fcd6ea..d5554e5 100755 --- a/bin/data/settings.xml +++ b/bin/data/settings.xml @@ -1,5 +1,5 @@ - + diff --git a/figgis_detect.layout b/figgis_detect.layout index 52953b7..87bde8e 100644 --- a/figgis_detect.layout +++ b/figgis_detect.layout @@ -4,8 +4,8 @@ - - + + @@ -19,8 +19,8 @@ - - + + diff --git a/figgis_detect.workspace b/figgis_detect.workspace deleted file mode 100755 index 7588a6e..0000000 --- a/figgis_detect.workspace +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/src/testApp.cpp b/src/testApp.cpp index 5928ee5..312aa57 100755 --- a/src/testApp.cpp +++ b/src/testApp.cpp @@ -19,8 +19,8 @@ void testApp::setup(){ vidGrabber.setVerbose(true); bGrab=vidGrabber.initGrabber(gw,gh); //base grab size - - learningRate = 0.01f; + + learningRate = 0.001f; colorImg.allocate(gw,gh); grayImage.allocate(gw,gh); @@ -28,7 +28,6 @@ void testApp::setup(){ grayDiff.allocate(gw,gh); mode=DISPLAY_FG; - method=METHOD_SIMPLE; bLearnBakground = true; @@ -123,7 +122,7 @@ void testApp::draw(){ grayDiff.draw(0,0,gw,gh); //(ofGetHeight()-gh)/2,gw,ofGetHeight()+((gh-ofGetHeight())/2)); break; } - + for (int i = 0; i < contourFinder.nBlobs; i++){ contourFinder.blobs[i].draw(0,0); //(ofGetHeight()-gh)/2); } @@ -301,6 +300,7 @@ void testApp::loadSettings(string filename){ invert=(XML.getAttribute("figgis","invert",0,0)==1); threshold = XML.getAttribute("figgis","threshold",80,0); volume = XML.getAttribute("figgis","volume",1.0,0); + method= XML.getAttribute("figgis","method",4,0); if(XML.pushTag("boundaries")) { for (int i=0;i