We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59bb91f commit 2914cebCopy full SHA for 2914ceb
2 files changed
cc/core/MatImgproc.cc
@@ -136,14 +136,14 @@ struct MatImgproc::ResizeWorker : BaseResizeWorker {
136
int cols;
137
138
const char* execute() {
139
- cv::resize(self, dst, cv::Size(rows, cols));
+ cv::resize(self, dst, cv::Size(cols, rows));
140
return "";
141
}
142
143
bool unwrapRequiredArgs(Nan::NAN_METHOD_ARGS_TYPE info) {
144
return (
145
IntConverter::arg(0, &rows, info) ||
146
- IntConverter::arg(0, &cols, info)
+ IntConverter::arg(1, &cols, info)
147
);
148
149
};
test/tests/core/Mat/imgprocTests.js
@@ -44,7 +44,7 @@ module.exports = (getTestImg) => {
44
});
45
46
describe('resize', () => {
47
- const rows = 8;
+ const rows = 32;
48
const cols = 8;
49
const mat = new cv.Mat(16, 16, cv.CV_8UC3);
50
0 commit comments