Commit d661ab7d418f893f954f6cf28bd33cea07c2b359

Authored by David Mayerich
1 parent 7c396e30

linux fixes for stim::image

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
stim/image/image.h
@@ -134,7 +134,7 @@ public: @@ -134,7 +134,7 @@ public:
134 memcpy(img, I.img, bytes()); 134 memcpy(img, I.img, bytes());
135 return *this; 135 return *this;
136 } 136 }
137 -#ifdef USING_OPENCV 137 +#ifndef USING_OPENCV
138 void load_bmp(std::string filename) { 138 void load_bmp(std::string filename) {
139 stim::bmp bitmap; 139 stim::bmp bitmap;
140 bitmap.open(filename); //load the bitmap and read the headers 140 bitmap.open(filename); //load the bitmap and read the headers
@@ -278,10 +278,11 @@ public: @@ -278,10 +278,11 @@ public:
278 outfile.write((const char*)img, size()); //write the binary data 278 outfile.write((const char*)img, size()); //write the binary data
279 outfile.close(); 279 outfile.close();
280 } 280 }
281 - 281 +#ifndef USING_OPENCV
282 void save_bmp(std::string filename) { 282 void save_bmp(std::string filename) {
283 stim::save_bmp(filename, (char*)img, width(), height()); 283 stim::save_bmp(filename, (char*)img, width(), height());
284 } 284 }
  285 +#endif
285 286
286 //save a file 287 //save a file
287 void save(std::string filename){ 288 void save(std::string filename){