From 71e731e1c6b564ca58f7f469882500ae93f1add3 Mon Sep 17 00:00:00 2001 From: Sergio Date: Wed, 24 Sep 2014 14:27:57 -0700 Subject: [PATCH] Fixed param order of cv::Size in cv::resize --- src/caffe/util/io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/caffe/util/io.cpp b/src/caffe/util/io.cpp index ad835e35d66..4a22e18725d 100644 --- a/src/caffe/util/io.cpp +++ b/src/caffe/util/io.cpp @@ -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; }