From 0a8391e816be243f2d75b643d12778a0c5295455 Mon Sep 17 00:00:00 2001
From: AlexeyAB <kikots@mail.ru>
Date: Sun, 06 Aug 2017 19:21:46 +0000
Subject: [PATCH] Added to Makefile the path to include of cuDNN

---
 src/image.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/image.c b/src/image.c
index 35bd8a0..5835b4b 100644
--- a/src/image.c
+++ b/src/image.c
@@ -1305,9 +1305,15 @@
 image load_image(char *filename, int w, int h, int c)
 {
 #ifdef OPENCV
-    image out = load_image_cv(filename, c);
+
+#ifndef CV_VERSION_EPOCH
+	image out = load_image_stb(filename, c);	// OpenCV 3.x
 #else
-    image out = load_image_stb(filename, c);
+	image out = load_image_cv(filename, c);		// OpenCV 2.4.x
+#endif
+
+#else
+    image out = load_image_stb(filename, c);	// without OpenCV
 #endif
 
     if((h && w) && (h != out.h || w != out.w)){

--
Gitblit v1.10.0