diff --git a/README.md b/README.md index f7475c9..9230e8b 100755 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ base datastructure in OpenCV. Things like images are just matrices of pixels. #### Creation - new Matrix(cols, rows) + new Matrix(rows, cols) Or if you're thinking of a Matrix as an image: diff --git a/src/Matrix.cc b/src/Matrix.cc index 01f1527..d7b2ca1 100755 --- a/src/Matrix.cc +++ b/src/Matrix.cc @@ -105,8 +105,8 @@ Matrix::Matrix(): ObjectWrap() { } -Matrix::Matrix(int cols, int rows): ObjectWrap() { - mat = cv::Mat(cols, rows, CV_32FC3); +Matrix::Matrix(int rows, int cols): ObjectWrap() { + mat = cv::Mat(rows, cols, CV_32FC3); } Matrix::Matrix(cv::Mat m, cv::Rect roi): ObjectWrap() {