_synth_save_cnt = 0; needed to be reset!
This commit is contained in:
parent
1117e632c6
commit
2f0415952e
@ -25,6 +25,7 @@ void CamNoiseAnalysis::setup(int camWidth, int camHeight)
|
||||
|
||||
_frame_cnt = 0;
|
||||
_run_cnt = 0;
|
||||
_synth_save_cnt = 0;
|
||||
|
||||
c = 0;
|
||||
|
||||
|
||||
@ -26,6 +26,7 @@ void ColorMultiAnalysis::setup(int camWidth, int camHeight)
|
||||
|
||||
_frame_cnt = 0;
|
||||
_run_cnt = 0;
|
||||
_synth_save_cnt = 0;
|
||||
c = 0;
|
||||
|
||||
int anim_time = 10; // 10 seconds
|
||||
|
||||
@ -27,6 +27,7 @@ void ColorSingleAnalysis::setup(int camWidth, int camHeight)
|
||||
|
||||
_run_cnt = 0;
|
||||
_frame_cnt = 0;
|
||||
_synth_save_cnt = 0;
|
||||
c = 0;
|
||||
|
||||
int anim_time = 10; // 10 seconds
|
||||
|
||||
@ -27,6 +27,7 @@ void DiffNoiseAnalysis::setup(int camWidth, int camHeight)
|
||||
|
||||
_run_cnt = 0;
|
||||
_frame_cnt = 0;
|
||||
_synth_save_cnt = 0;
|
||||
c = 0;
|
||||
|
||||
int anim_time = 10; // 10 seconds
|
||||
|
||||
@ -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
|
||||
|
||||
//create_dir();
|
||||
|
||||
_synth_save_cnt = 0;
|
||||
_run_cnt = 0;
|
||||
_frame_cnt = 0;
|
||||
c = 0;
|
||||
|
||||
@ -29,7 +29,8 @@ void RelaxRateAnalysis::setup(int camWidth, int camHeight)
|
||||
_flip = 1;
|
||||
_frame_cnt = 0;
|
||||
c = 0;
|
||||
|
||||
_synth_save_cnt = 0;
|
||||
|
||||
int anim_time = 5; // 10 seconds
|
||||
_anim_cnt_max = anim_time*ofGetFrameRate(); // e.g.: 30 frames per second = 150 frames
|
||||
|
||||
|
||||
@ -133,15 +133,15 @@ void ShadowScapesAnalysis::synthesise()
|
||||
string file_name;
|
||||
|
||||
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) {
|
||||
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) {
|
||||
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);
|
||||
|
||||
@ -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
|
||||
|
||||
//create_dir();
|
||||
_synth_save_cnt = 0;
|
||||
_run_cnt = 0;
|
||||
_frame_cnt = 0;
|
||||
c = 0;
|
||||
|
||||
@ -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.
|
||||
|
||||
//create_dir();
|
||||
|
||||
_synth_save_cnt = 0;
|
||||
_run_cnt = 0;
|
||||
|
||||
int anim_time = 5; // 5 seconds for the animation
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user