Commit 7c396e306ab35e813456c0463b263b047bfd0a56
1 parent
a688950c
fixed Linux stim::image bmp bug
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
stim/image/image.h
... | ... | @@ -134,7 +134,7 @@ public: |
134 | 134 | memcpy(img, I.img, bytes()); |
135 | 135 | return *this; |
136 | 136 | } |
137 | - | |
137 | +#ifdef USING_OPENCV | |
138 | 138 | void load_bmp(std::string filename) { |
139 | 139 | stim::bmp bitmap; |
140 | 140 | bitmap.open(filename); //load the bitmap and read the headers |
... | ... | @@ -145,6 +145,7 @@ public: |
145 | 145 | } |
146 | 146 | bitmap.close(); //close the bitmap file |
147 | 147 | } |
148 | +#endif | |
148 | 149 | |
149 | 150 | //save a Netpbm file |
150 | 151 | void load_netpbm(std::string filename) { | ... | ... |