mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Clarify width, height params re #30
This commit is contained in:
parent
bb1fa037f3
commit
0de039956e
@ -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.
|
||||
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user