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

This commit is contained in:
Peter Braden 2013-02-13 13:30:31 -08:00
parent 0de039956e
commit 454fd1188a
2 changed files with 3 additions and 3 deletions

View File

@ -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 File

@ -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() {