_synth_save_cnt = 0; needed to be reset!

This commit is contained in:
Jamie Allen 2012-02-22 16:17:24 +01:00
parent 1117e632c6
commit 2f0415952e
9 changed files with 12 additions and 6 deletions

View File

@ -25,6 +25,7 @@ void CamNoiseAnalysis::setup(int camWidth, int camHeight)
_frame_cnt = 0; _frame_cnt = 0;
_run_cnt = 0; _run_cnt = 0;
_synth_save_cnt = 0;
c = 0; c = 0;

View File

@ -26,6 +26,7 @@ void ColorMultiAnalysis::setup(int camWidth, int camHeight)
_frame_cnt = 0; _frame_cnt = 0;
_run_cnt = 0; _run_cnt = 0;
_synth_save_cnt = 0;
c = 0; c = 0;
int anim_time = 10; // 10 seconds int anim_time = 10; // 10 seconds

View File

@ -27,6 +27,7 @@ void ColorSingleAnalysis::setup(int camWidth, int camHeight)
_run_cnt = 0; _run_cnt = 0;
_frame_cnt = 0; _frame_cnt = 0;
_synth_save_cnt = 0;
c = 0; c = 0;
int anim_time = 10; // 10 seconds int anim_time = 10; // 10 seconds

View File

@ -27,6 +27,7 @@ void DiffNoiseAnalysis::setup(int camWidth, int camHeight)
_run_cnt = 0; _run_cnt = 0;
_frame_cnt = 0; _frame_cnt = 0;
_synth_save_cnt = 0;
c = 0; c = 0;
int anim_time = 10; // 10 seconds int anim_time = 10; // 10 seconds

View File

@ -23,7 +23,7 @@ void IResponseAnalysis::setup(int camWidth, int camHeight)
_frame_cnt_max = acq_run_time*ofGetFrameRate(); // e.g.: 30 frames per second * 20 seconds = 600 frames _frame_cnt_max = acq_run_time*ofGetFrameRate(); // e.g.: 30 frames per second * 20 seconds = 600 frames
//create_dir(); //create_dir();
_synth_save_cnt = 0;
_run_cnt = 0; _run_cnt = 0;
_frame_cnt = 0; _frame_cnt = 0;
c = 0; c = 0;

View File

@ -29,6 +29,7 @@ void RelaxRateAnalysis::setup(int camWidth, int camHeight)
_flip = 1; _flip = 1;
_frame_cnt = 0; _frame_cnt = 0;
c = 0; c = 0;
_synth_save_cnt = 0;
int anim_time = 5; // 10 seconds int anim_time = 5; // 10 seconds
_anim_cnt_max = anim_time*ofGetFrameRate(); // e.g.: 30 frames per second = 150 frames _anim_cnt_max = anim_time*ofGetFrameRate(); // e.g.: 30 frames per second = 150 frames

View File

@ -133,15 +133,15 @@ void ShadowScapesAnalysis::synthesise()
string file_name; string file_name;
if(_dir == H) { if(_dir == H) {
file_name = ofToString(_synth_save_cnt, 2)+"_H_ShadowScapesSynthesis"+ofToString(_run_cnt,2)+".jpg"; file_name = ofToString(_synth_save_cnt, 2)+"_H_ShadowScapesSynthesis_"+ofToString(_run_cnt,2)+".jpg";
} }
if(_dir == V) { if(_dir == V) {
file_name = ofToString(_synth_save_cnt, 2)+"_V_ShadowScapesSynthesis"+ofToString(_run_cnt,2)+".jpg"; file_name = ofToString(_synth_save_cnt, 2)+"_V_ShadowScapesSynthesis_"+ofToString(_run_cnt,2)+".jpg";
} }
if(_dir == D) { if(_dir == D) {
file_name = ofToString(_synth_save_cnt, 2)+"_D_ShadowScapesSynthesis"+ofToString(_run_cnt,2)+".jpg"; file_name = ofToString(_synth_save_cnt, 2)+"_D_ShadowScapesSynthesis_"+ofToString(_run_cnt,2)+".jpg";
} }
//image4.setFromPixels(cvColorImage1.getPixelsRef(),image3.width, image3.height, OF_IMAGE_COLOR); //image4.setFromPixels(cvColorImage1.getPixelsRef(),image3.width, image3.height, OF_IMAGE_COLOR);

View File

@ -22,6 +22,7 @@ void ShapeFromShadingAnalysis::setup(int camWidth, int camHeight)
_frame_cnt_max = acq_run_time*ofGetFrameRate(); // e.g.: 30 frames per second * 20 seconds = 600 frames _frame_cnt_max = acq_run_time*ofGetFrameRate(); // e.g.: 30 frames per second * 20 seconds = 600 frames
//create_dir(); //create_dir();
_synth_save_cnt = 0;
_run_cnt = 0; _run_cnt = 0;
_frame_cnt = 0; _frame_cnt = 0;
c = 0; c = 0;

View File

@ -26,7 +26,7 @@ void StrobeAnalysis::setup(int camWidth, int camHeight)
// The British Health and Safety Executive recommend that a net flash rate for a bank of strobe lights does not exceed 5 flashes per second, at which only 5% of photosensitive epileptics are at risk. It also recommends that no strobing effect continue for more than 30 seconds, due to the potential for discomfort and disorientation. // The British Health and Safety Executive recommend that a net flash rate for a bank of strobe lights does not exceed 5 flashes per second, at which only 5% of photosensitive epileptics are at risk. It also recommends that no strobing effect continue for more than 30 seconds, due to the potential for discomfort and disorientation.
//create_dir(); //create_dir();
_synth_save_cnt = 0;
_run_cnt = 0; _run_cnt = 0;
int anim_time = 5; // 5 seconds for the animation int anim_time = 5; // 5 seconds for the animation