Skip to content

Commit

Permalink
Fixed param order of cv::Size in cv::resize
Browse files Browse the repository at this point in the history
  • Loading branch information
sguada committed Sep 24, 2014
1 parent 22f47bb commit 71e731e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/caffe/util/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 71e731e

Please sign in to comment.