now displays images after saving them out and also fixed maths booboo with analysis

This commit is contained in:
Tom Schofield
2012-04-13 11:16:51 +01:00
parent 706eb9354d
commit a9c8a56850
2 changed files with 10 additions and 7 deletions
+3 -3
View File
@@ -19,7 +19,7 @@
#define CAMERA_ACQU_WIDTH 640
#define CAMERA_ACQU_HEIGHT 480
#define LOCATION "BRADFORD"
#define LOCATION "MANCHESTER"
#define ISTATE_UNDEF 0xEEEE
#define ISTATE_START 0xAAAA
@@ -216,7 +216,7 @@ void RefractiveIndex::draw()
if(_currentAnalysis){
_currentAnalysis->draw();
cout<<_currentAnalysis->meshIsComplete<<endl;
if(_currentAnalysis->meshIsComplete){
fbo.begin();
@@ -231,7 +231,7 @@ void RefractiveIndex::draw()
fbo.end();
ofPixels pixels;
fbo.readToPixels(pixels);
cout<<_currentAnalysis->meshFileName<<endl;
ofSaveImage(pixels,_currentAnalysis->meshFileName, OF_IMAGE_QUALITY_BEST);
//saving jpgs doesn't work maybe because of of_image_quality