a few tweaks to the main draw loop

working on the colormulti and colorsingle outputs still
This commit is contained in:
Jamie Allen
2012-05-07 01:08:59 +02:00
parent e0e170b522
commit 1e5bb28b43
11 changed files with 66 additions and 11 deletions
+1
View File
@@ -64,6 +64,7 @@ public:
bool meshIsComplete;
bool imageForContourAvailable;
ofMesh aMesh;
ofLight light;
string meshFileName;
//difference between our image size and the size of the fbo
+3
View File
@@ -64,4 +64,7 @@ protected:
//this is the temporary container to allow us to convert and save out greyscale images
ofxCvColorImage cvConvertorImage;
bool _gotFirstImage;
ofImage _background;
};
+8
View File
@@ -21,6 +21,14 @@ void DiffNoiseAnalysis::setup(int camWidth, int camHeight)
cout << "NUM_RUN DiffNoiseAnalysis " << NUM_RUN << endl;
//NUM_RUN = 5;
//flag for main sketch
meshIsComplete=false;
_gotFirstImage=false;
_mesh_size_multiplier=4;
int acq_run_time; // 10 seconds of acquiring per run
acq_run_time = RefractiveIndex::XML.getValue("config:analysis_time:acquiretime_diffnoise", ACQUIRE_TIME);
cout << "ACQUIRE_TIME DiffNoiseAnalysis " << acq_run_time << endl;
+3
View File
@@ -63,4 +63,7 @@ protected:
//this is the temporary container to allow us to convert and save out greyscale images
ofxCvColorImage cvConvertorImage;
bool _gotFirstImage;
ofImage _background;
};
+7 -1
View File
@@ -20,6 +20,12 @@ void IResponseAnalysis::setup(int camWidth, int camHeight)
NUM_RUN = RefractiveIndex::XML.getValue("config:analysis_NUM_RUN:NUM_RUN_iresponse", NUMBER_RUNS);
cout << "NUM_RUN IResponseAnalysis " << NUM_RUN << endl;
//NUM_RUN = 5;
//flag for main sketch
meshIsComplete=false;
_gotFirstImage=false;
_mesh_size_multiplier=4;
int acq_run_time; // 10 seconds of acquiring per run
acq_run_time = RefractiveIndex::XML.getValue("config:analysis_time:acquiretime_iresponse", ACQUIRE_TIME);
@@ -463,7 +469,7 @@ void IResponseAnalysis::setMeshFromPixels(vector<float> sPixels, ofImage current
x=0;
y++;
//something is going badly wrong with my maths for me to need this HELP TODO fix this - why am I running over the end of the vector?
if(y>=479){
if(y>=currentSecondImage.getHeight()-1){
break;
}
}
+3
View File
@@ -50,5 +50,8 @@ protected:
vector<rfiCvContourFinder*> cvContourFinderVect;
vector<rfiCvContourFinder*> cvContourFinderVectDisplay;
bool _gotFirstImage;
ofImage _background;
};
+8
View File
@@ -25,6 +25,14 @@ void ShadowScapesAnalysis::setup(int camWidth, int camHeight)
cout << "NUM_RUN ShadowScapesAnalysis " << NUM_RUN << endl;
//NUM_RUN = 5;
//flag for main sketch
meshIsComplete=false;
_gotFirstImage=false;
_mesh_size_multiplier=4;
int acq_run_time; // 10 seconds of acquiring per run
acq_run_time = RefractiveIndex::XML.getValue("config:analysis_time:acquiretime_shadowscapes", ACQUIRE_TIME);
cout << "ACQUIRE_TIME ShadowScapesAnalysis " << acq_run_time << endl;
+4 -1
View File
@@ -67,6 +67,9 @@ protected:
ofxCvContourFinder cvContourFinder1;
//this is the temporary container to allow us to convert and save out greyscale images
ofxCvColorImage cvConvertorImage;
ofxCvColorImage cvConvertorImage;
bool _gotFirstImage;
ofImage _background;
};
+2
View File
@@ -82,4 +82,6 @@ protected:
//this is the temporary container to allow us to convert and save out greyscale images
ofxCvColorImage cvConvertorImage;
bool _gotFirstImage;
ofImage _background;
};
+3
View File
@@ -67,5 +67,8 @@ protected:
//this is the temporary container to allow us to convert and save out greyscale images
ofxCvColorImage cvConvertorImage;
bool _gotFirstImage;
ofImage _background;
};