projects
/
platform
/
upstream
/
caffe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22f47bb
)
Fixed param order of cv::Size in cv::resize
author
Sergio
<sguada@gmail.com>
Wed, 24 Sep 2014 21:27:57 +0000
(14:27 -0700)
committer
Sergio
<sguada@gmail.com>
Wed, 24 Sep 2014 21:27:57 +0000
(14:27 -0700)
src/caffe/util/io.cpp
patch
|
blob
|
history
diff --git
a/src/caffe/util/io.cpp
b/src/caffe/util/io.cpp
index
ad835e3
..
4a22e18
100644
(file)
--- 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;
}