tried to add a keypress function - got almost there... need to figure out how to turn off the Analyses from RefractiveIndex.cpp... without blocking

This commit is contained in:
Jamie Allen
2012-02-19 23:34:48 +01:00
parent d536774cc8
commit f2593aed49
7 changed files with 96 additions and 14 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ using Poco::Thread;
void CamNoiseAnalysis::setup(int camWidth, int camHeight)
{
DELTA_T_SAVE = 200;
DELTA_T_SAVE = 200;
NUM_PHASE = 1;
NUM_RUN = 1;
NUM_SAVE_PER_RUN = 100;
@@ -153,7 +153,7 @@ void CamNoiseAnalysis::save_cb(Timer& timer)
_save_cnt++;
cout << "ColorSingleAnalysis::saving...\n";
cout << "CamNoiseAnalysis::saving...\n";
string file_name = ofToString(_save_cnt,2)+"_"+ ofToString(c,2)+"_"+ofToString(_run_cnt,2)+".jpg";
+1 -1
View File
@@ -18,7 +18,7 @@ using Poco::Thread;
void ColorSingleAnalysis::setup(int camWidth, int camHeight)
{
DELTA_T_SAVE = 300;
DELTA_T_SAVE = 300; //300 is the right number here
NUM_PHASE = 1;
NUM_RUN = 1;
NUM_SAVE_PER_RUN = 100;
+3 -3
View File
@@ -18,9 +18,9 @@ using Poco::Thread;
void RelaxRateAnalysis::setup(int camWidth, int camHeight)
{
DELTA_T_SAVE = 300;
DELTA_T_SAVE = 100; //300 is the correct number
NUM_PHASE = 1;
NUM_RUN = 3;
NUM_RUN = 1;
NUM_SAVE_PER_RUN = 100;
create_dir();
@@ -98,7 +98,7 @@ void RelaxRateAnalysis::draw()
}
_frame_cnt++;
cout << "_frame_cnt:" << _frame_cnt << endl;
//cout << "_frame_cnt:" << _frame_cnt << endl;
break;
}
+8 -6
View File
@@ -46,13 +46,15 @@ using Poco::Thread;
void ShadowScapesAnalysis::setup(int camWidth, int camHeight)
{
DELTA_T_SAVE = 100;
NUM_PHASE = 1;
NUM_RUN = 1;
NUM_SAVE_PER_RUN = 100;
create_dir();
_speed = 900.0; // 900.0 is the correct number
_speed = 100.0; // 900.0 is the correct number
_scanLineWidth = 100.0;
_run_cnt = 0;
_save_cnt = 0;
@@ -60,12 +62,12 @@ void ShadowScapesAnalysis::setup(int camWidth, int camHeight)
void ShadowScapesAnalysis::acquire()
{
int w;
if (_dir == V) w = ofGetHeight();
if (_dir == H) w = ofGetWidth();
if (_dir == D) w = ofGetHeight();
int screenSpan;
if (_dir == V) screenSpan = ofGetHeight();
if (_dir == H) screenSpan = ofGetWidth();
if (_dir == D) screenSpan = ofGetHeight();
_step = ((w/_speed) * 1000.0) / 500.0;
_step = ((screenSpan/_speed) * 1000.0) / 500.0;
_line = 0;
// RUN ROUTINE
+1 -1
View File
@@ -18,7 +18,7 @@ using Poco::Thread;
void ShapeFromShadingAnalysis::setup(int camWidth, int camHeight)
{
DELTA_T_SAVE = 300;
DELTA_T_SAVE = 300; //300 is about the right number
NUM_PHASE = 1;
NUM_RUN = 1;
NUM_SAVE_PER_RUN = 100;
+1 -1
View File
@@ -48,7 +48,7 @@ void StrobeAnalysis::acquire()
_save_cnt = 0;
_frame_cnt = 0;
cout << "RUN NUM = " << i;
//cout << "RUN NUM = " << i;
save_timer = new Timer(0, DELTA_T_SAVE); // timing interval for saving files
save_timer->start(save_callback);