Permalink
Browse files

s/cols,rows/rows,cols/g re #30

  • Loading branch information...
1 parent 0de0399 commit 454fd1188a021576fc22f625349b1ff3c503dc68 @peterbraden committed Feb 13, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 README.md
  2. +2 −2 src/Matrix.cc
View
2 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:
View
4 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() {

0 comments on commit 454fd11

Please sign in to comment.