From ebe29d2c8a6544abf5acd8d94be130ec02748f34 Mon Sep 17 00:00:00 2001 From: Jamie Allen Date: Mon, 27 Feb 2012 20:28:33 +0100 Subject: [PATCH] sorry - this is the actual possible windows fix... get this one TOM! --- src/AbstractAnalysis.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/AbstractAnalysis.cpp b/src/AbstractAnalysis.cpp index 7b5fd06..ae8c9b5 100644 --- a/src/AbstractAnalysis.cpp +++ b/src/AbstractAnalysis.cpp @@ -151,11 +151,11 @@ void AbstractAnalysis::saveImageAnalysis(string filename) void AbstractAnalysis::saveImageSynthesis(string filename, ofxCvImage* newPixels, ofImageType newType) { -//#ifdef TARGET_OSX +#ifdef TARGET_OSX -// ofSaveImage(newPixels->getPixelsRef(), _whole_file_path_synthesis+"/"+filename, OF_IMAGE_QUALITY_BEST); + ofSaveImage(newPixels->getPixelsRef(), _whole_file_path_synthesis+"/"+filename, OF_IMAGE_QUALITY_BEST); -//#elif defined(TARGET_WIN32) +#elif defined(TARGET_WIN32) if (newType == OF_IMAGE_COLOR){ myColorImage2.setUseTexture(false); @@ -169,7 +169,7 @@ void AbstractAnalysis::saveImageSynthesis(string filename, ofxCvImage* newPixels // THIS IS HOW YOU HAVE TO SAVE OUT THE GREYSCALE IMAGES on WINDOWS FOR SOME REASON --> i.e.: as an OF_IMAGE_COLOR // But they don't save properly - they're spatially translated and generally f'd up myGrayImage1.setFromPixels(newPixels->getPixels(), newPixels->getWidth(), newPixels->getHeight(), OF_IMAGE_GRAYSCALE); - //myGrayImage1.setImageType(OF_IMAGE_COLOR); + myGrayImage1.setImageType(OF_IMAGE_COLOR); // THIS DOESN' SEEM TO SAVE OUT IMAGES AT ALL ON WINDOWS //myGrayImage1.setFromPixels(newPixels->getPixels(), newPixels->getWidth(), newPixels->getHeight(), OF_IMAGE_GRAYSCALE); @@ -177,7 +177,7 @@ void AbstractAnalysis::saveImageSynthesis(string filename, ofxCvImage* newPixels myGrayImage1.saveImage(_whole_file_path_synthesis+"/"+filename); } -//#endif +#endif _saved_filenames_synthesis.push_back(_whole_file_path_synthesis+"/"+filename);