From 7c396e306ab35e813456c0463b263b047bfd0a56 Mon Sep 17 00:00:00 2001 From: David Mayerich Date: Fri, 24 Feb 2017 11:08:12 -0600 Subject: [PATCH] fixed Linux stim::image bmp bug --- stim/image/image.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stim/image/image.h b/stim/image/image.h index 31e7edb..9eb07ed 100644 --- a/stim/image/image.h +++ b/stim/image/image.h @@ -134,7 +134,7 @@ public: memcpy(img, I.img, bytes()); return *this; } - +#ifdef USING_OPENCV void load_bmp(std::string filename) { stim::bmp bitmap; bitmap.open(filename); //load the bitmap and read the headers @@ -145,6 +145,7 @@ public: } bitmap.close(); //close the bitmap file } +#endif //save a Netpbm file void load_netpbm(std::string filename) { -- libgit2 0.21.4