Fixed param order of cv::Size in cv::resize
authorSergio <sguada@gmail.com>
Wed, 24 Sep 2014 21:27:57 +0000 (14:27 -0700)
committerSergio <sguada@gmail.com>
Wed, 24 Sep 2014 21:27:57 +0000 (14:27 -0700)
src/caffe/util/io.cpp

index ad835e3..4a22e18 100644 (file)
@@ -78,7 +78,7 @@ bool ReadImageToDatum(const string& filename, const int label,
     return false;
   }
   if (height > 0 && width > 0) {
-    cv::resize(cv_img_origin, cv_img, cv::Size(height, width));
+    cv::resize(cv_img_origin, cv_img, cv::Size(width, height));
   } else {
     cv_img = cv_img_origin;
   }