Skip to content

Commit

Permalink
Merge pull request BVLC#1152 from sguada/fix_cv_size_order
Browse files Browse the repository at this point in the history
Fix param order of cv::Size in cv::resize
  • Loading branch information
shelhamer committed Sep 24, 2014
2 parents 22f47bb + 71e731e commit 4bb198a
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 4bb198a

Please sign in to comment.