Clarify width, height params re #30

This commit is contained in:
Peter Braden 2013-02-12 05:24:50 -08:00
parent bb1fa037f3
commit 0de039956e
2 changed files with 7 additions and 5 deletions

View File

@ -49,7 +49,11 @@ base datastructure in OpenCV. Things like images are just matrices of pixels.
#### Creation
new Matrix(width, height)
new Matrix(cols, rows)
Or if you're thinking of a Matrix as an image:
new Matrix(height, width)
Or you can use opencv to read in image files. Supported formats are in the OpenCV docs, but jpgs etc are supported.

View File

@ -105,10 +105,8 @@ Matrix::Matrix(): ObjectWrap() {
}
Matrix::Matrix(int w, int h): ObjectWrap() {
mat = cv::Mat(w, h, CV_32FC3);
//TODO:Parametrizar esto
//mat = cv::Mat(h, w, CV_8UC3);
Matrix::Matrix(int cols, int rows): ObjectWrap() {
mat = cv::Mat(cols, rows, CV_32FC3);
}
Matrix::Matrix(cv::Mat m, cv::Rect roi): ObjectWrap() {