sorry - this is the actual possible windows fix... get this one TOM!
This commit is contained in:
parent
86769bfc5f
commit
ebe29d2c8a
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user