diff --git a/config.refindx b/config.refindx index e72b2af..3d20749 100644 --- a/config.refindx +++ b/config.refindx @@ -1,3 +1,5 @@ + + 1 @@ -11,13 +13,17 @@ SWANSEA - - - - - - - + + 5 + 2 + 3 + 4 + 5 + 1 + 5 + 5 + 2 + 25 diff --git a/src/CamNoiseAnalysis.cpp b/src/CamNoiseAnalysis.cpp index 7bc2707..d771a27 100755 --- a/src/CamNoiseAnalysis.cpp +++ b/src/CamNoiseAnalysis.cpp @@ -15,14 +15,14 @@ using Poco::Thread; void CamNoiseAnalysis::setup(int camWidth, int camHeight) { - NUM_RUN = RefractiveIndex::XML.getValue("config:analysis:NUM_RUN_CamNoiseAnalysis", NUMBER_RUNS); + NUM_RUN = RefractiveIndex::XML.getValue("config:analysis_NUM_RUN:NUM_RUN_camnoise", NUMBER_RUNS); cout << "NUM_RUN CamNoiseAnalysis " << NUM_RUN << endl; - //NUM_RUN = 5; int acq_run_time; // 10 seconds of acquiring per run - acq_run_time = RefractiveIndex::XML.getValue("config:analysis:acquiretime_camnoise", ACQUIRE_TIME); + acq_run_time = RefractiveIndex::XML.getValue("config:analysis_time:acquiretime_camnoise", ACQUIRE_TIME); cout << "ACQUIRE_TIME CamNoiseAnalysis " << acq_run_time << endl; + //int acq_run_time = 20; // 20 seconds of acquiring per run diff --git a/src/ColorMultiAnalysis.cpp b/src/ColorMultiAnalysis.cpp index 45bf943..2ac192a 100755 --- a/src/ColorMultiAnalysis.cpp +++ b/src/ColorMultiAnalysis.cpp @@ -14,15 +14,14 @@ using Poco::Thread; void ColorMultiAnalysis::setup(int camWidth, int camHeight) { - NUM_RUN = RefractiveIndex::XML.getValue("config:analysis:NUM_RUN_ColorMultiAnalysis", NUMBER_RUNS); + NUM_RUN = RefractiveIndex::XML.getValue("config:analysis_NUM_RUN:NUM_RUN_colormulti", NUMBER_RUNS); cout << "NUM_RUN ColorMultiAnalysis " << NUM_RUN << endl; - //NUM_RUN = 5; int acq_run_time; // 10 seconds of acquiring per run - acq_run_time = RefractiveIndex::XML.getValue("config:analysis:acquiretime_colormulti", ACQUIRE_TIME); + acq_run_time = RefractiveIndex::XML.getValue("config:analysis_time:acquiretime_colormulti", ACQUIRE_TIME); cout << "ACQUIRE_TIME ColorMultiAnalysis " << acq_run_time << endl; - + //int acq_run_time = 35; DELTA_T_SAVE = 1*(10*acq_run_time/2); // for 20 seconds, we want this to be around 200 files diff --git a/src/ColorSingleAnalysis.cpp b/src/ColorSingleAnalysis.cpp index bc1696f..7379a26 100755 --- a/src/ColorSingleAnalysis.cpp +++ b/src/ColorSingleAnalysis.cpp @@ -15,15 +15,14 @@ using Poco::Thread; void ColorSingleAnalysis::setup(int camWidth, int camHeight) { - NUM_RUN = RefractiveIndex::XML.getValue("config:analysis:NUM_RUN_ColorSingleAnalysis", NUMBER_RUNS); + NUM_RUN = RefractiveIndex::XML.getValue("config:analysis_NUM_RUN:NUM_RUN_colorsingle", NUMBER_RUNS); cout << "NUM_RUN ColorSingleAnalysis " << NUM_RUN << endl; - //NUM_RUN = 5; int acq_run_time; // 10 seconds of acquiring per run - acq_run_time = RefractiveIndex::XML.getValue("config:analysis:acquiretime_colorsingle", ACQUIRE_TIME); + acq_run_time = RefractiveIndex::XML.getValue("config:analysis_time:acquiretime_colorsingle", ACQUIRE_TIME); cout << "ACQUIRE_TIME ColorSingleAnalysis " << acq_run_time << endl; - + //int acq_run_time = 25; // 20 seconds of acquiring per run DELTA_T_SAVE = 1*(10*acq_run_time/2); // for 20 seconds, we want this to be around 200 files diff --git a/src/DiffNoiseAnalysis.cpp b/src/DiffNoiseAnalysis.cpp index b1cba7a..a9654c5 100755 --- a/src/DiffNoiseAnalysis.cpp +++ b/src/DiffNoiseAnalysis.cpp @@ -15,13 +15,12 @@ using Poco::Thread; void DiffNoiseAnalysis::setup(int camWidth, int camHeight) { - NUM_RUN = RefractiveIndex::XML.getValue("config:analysis:NUM_RUN_DiffNoiseAnalysis", NUMBER_RUNS); + NUM_RUN = RefractiveIndex::XML.getValue("config:analysis_NUM_RUN:NUM_RUN_diffnoise", NUMBER_RUNS); cout << "NUM_RUN DiffNoiseAnalysis " << NUM_RUN << endl; - //NUM_RUN = 5; int acq_run_time; // 10 seconds of acquiring per run - acq_run_time = RefractiveIndex::XML.getValue("config:analysis:diffnoise_shadow", ACQUIRE_TIME); + acq_run_time = RefractiveIndex::XML.getValue("config:analysis_time:acquiretime_diffnoise", ACQUIRE_TIME); cout << "ACQUIRE_TIME DiffNoiseAnalysis " << acq_run_time << endl; //int acq_run_time = 20; // 20 seconds of acquiring per run diff --git a/src/IResponseAnalysis.cpp b/src/IResponseAnalysis.cpp index ab64c1a..b907c7c 100755 --- a/src/IResponseAnalysis.cpp +++ b/src/IResponseAnalysis.cpp @@ -15,15 +15,15 @@ using Poco::Thread; void IResponseAnalysis::setup(int camWidth, int camHeight) { - NUM_RUN = RefractiveIndex::XML.getValue("config:analysis:NUM_RUN_IResponseAnalysis", NUMBER_RUNS); + NUM_RUN = RefractiveIndex::XML.getValue("config:analysis_NUM_RUN:NUM_RUN_iresponse", NUMBER_RUNS); cout << "NUM_RUN IResponseAnalysis " << NUM_RUN << endl; - //NUM_RUN = 5; int acq_run_time; // 10 seconds of acquiring per run - acq_run_time = RefractiveIndex::XML.getValue("config:analysis:acquiretime_iresponse", ACQUIRE_TIME); + acq_run_time = RefractiveIndex::XML.getValue("config:analysis_time:acquiretime_iresponse", ACQUIRE_TIME); cout << "ACQUIRE_TIME IResponseAnalysis " << acq_run_time << endl; + //int acq_run_time = 20; // 20 seconds of acquiring per run DELTA_T_SAVE = 2*(10*acq_run_time/2); // for 20 seconds, we want this to be around 200 files diff --git a/src/RelaxRateAnalysis.cpp b/src/RelaxRateAnalysis.cpp index f6a0a4a..0b09bac 100755 --- a/src/RelaxRateAnalysis.cpp +++ b/src/RelaxRateAnalysis.cpp @@ -15,13 +15,12 @@ using Poco::Thread; void RelaxRateAnalysis::setup(int camWidth, int camHeight) { - NUM_RUN = RefractiveIndex::XML.getValue("config:analysis:NUM_RUN", NUMBER_RUNS); + NUM_RUN = RefractiveIndex::XML.getValue("config:analysis_NUM_RUN:NUM_RUN_relaxrate", NUMBER_RUNS); cout << "NUM_RUN RelaxRateAnalysis " << NUM_RUN << endl; - //NUM_RUN = 5; - + int acq_run_time; // 10 seconds of acquiring per run - acq_run_time = RefractiveIndex::XML.getValue("config:analysis:acquiretime_relaxrate", ACQUIRE_TIME); + acq_run_time = RefractiveIndex::XML.getValue("config:analysis_time:acquiretime_relaxrate", ACQUIRE_TIME); cout << "ACQUIRE_TIME RelaxRateAnalysis " << acq_run_time << endl; //int acq_run_time = 20; // 20 seconds of acquiring per run diff --git a/src/ShadowScapesAnalysis.cpp b/src/ShadowScapesAnalysis.cpp index ff33893..2b9227b 100755 --- a/src/ShadowScapesAnalysis.cpp +++ b/src/ShadowScapesAnalysis.cpp @@ -19,12 +19,12 @@ using Poco::Thread; void ShadowScapesAnalysis::setup(int camWidth, int camHeight) { - NUM_RUN = RefractiveIndex::XML.getValue("config:analysis:NUM_RUN_ShadowScapesAnalysis", NUMBER_RUNS); + NUM_RUN = RefractiveIndex::XML.getValue("config:analysis_NUM_RUN:NUM_RUN_shadowscapes", NUMBER_RUNS); cout << "NUM_RUN ShadowScapesAnalysis " << NUM_RUN << endl; //NUM_RUN = 5; int acq_run_time; // 10 seconds of acquiring per run - acq_run_time = RefractiveIndex::XML.getValue("config:analysis:acquiretime_shadowscapes", ACQUIRE_TIME); + acq_run_time = RefractiveIndex::XML.getValue("config:analysis_time:acquiretime_shadowscapes", ACQUIRE_TIME); cout << "ACQUIRE_TIME ShadowScapesAnalysis " << acq_run_time << endl; int screenSpan; @@ -233,7 +233,7 @@ void ShadowScapesAnalysis::displayresults() } } */ - + } @@ -412,7 +412,6 @@ void ShadowScapesAnalysis::draw() case STATE_DISPLAY_RESULTS: { //cout << "STATE_DISPLAY_RESULTS...\n" << endl; - if (_frame_cnt > 2) { diff --git a/src/ShapeFromShadingAnalysis.cpp b/src/ShapeFromShadingAnalysis.cpp index 8db0bf4..f49650f 100755 --- a/src/ShapeFromShadingAnalysis.cpp +++ b/src/ShapeFromShadingAnalysis.cpp @@ -14,17 +14,16 @@ using Poco::Thread; #define ACQUIRE_TIME 20 void ShapeFromShadingAnalysis::setup(int camWidth, int camHeight) -{ - - NUM_RUN = RefractiveIndex::XML.getValue("config:analysis:NUM_RUN_ShapeFromShadingAnalysis", NUMBER_RUNS); +{ + NUM_RUN = RefractiveIndex::XML.getValue("config:analysis_NUM_RUN:NUM_RUN_shapefromshading", NUMBER_RUNS); cout << "NUM_RUN ShapeFromShadingAnalysis " << NUM_RUN << endl; - - // NUM_RUN = 5; + //NUM_RUN = 5; int acq_run_time; // 10 seconds of acquiring per run - acq_run_time = RefractiveIndex::XML.getValue("config:analysis:acquiretime_shapefromshading", ACQUIRE_TIME); + acq_run_time = RefractiveIndex::XML.getValue("config:analysis_time:acquiretime_shapefromshading", ACQUIRE_TIME); cout << "ACQUIRE_TIME ShapeFromShadingAnalysis " << acq_run_time << endl; - + + //int acq_run_time = 20; // 20 seconds of acquiring per run DELTA_T_SAVE = 2*(10*acq_run_time/2); // for 20 seconds, we want this to be around 200 files diff --git a/src/StrobeAnalysis.cpp b/src/StrobeAnalysis.cpp index cb0b004..8b9cf2f 100755 --- a/src/StrobeAnalysis.cpp +++ b/src/StrobeAnalysis.cpp @@ -15,15 +15,14 @@ using Poco::Thread; void StrobeAnalysis::setup(int camWidth, int camHeight) { - NUM_RUN = RefractiveIndex::XML.getValue("config:analysis:NUM_RUN_StrobeAnalysis", NUMBER_RUNS); + NUM_RUN = RefractiveIndex::XML.getValue("config:analysis_NUM_RUN:NUM_RUN_strobe", NUMBER_RUNS); cout << "NUM_RUN StrobeAnalysis " << NUM_RUN << endl; - //NUM_RUN = 5; int acq_run_time; // 10 seconds of acquiring per run - acq_run_time = RefractiveIndex::XML.getValue("config:analysis:acquiretime_strobe", ACQUIRE_TIME); + acq_run_time = RefractiveIndex::XML.getValue("config:analysis_time:acquiretime_strobe", ACQUIRE_TIME); cout << "ACQUIRE_TIME StrobeAnalysis " << acq_run_time << endl; - + //int acq_run_time = 25; // 20 seconds of acquiring per run DELTA_T_SAVE = 2*(10*acq_run_time/2); // for 20 seconds, we want this to be around 100 files