mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
swap width/height in Matrix constructor
Matrix constructor is (rows, cols)/(height,width)
This commit is contained in:
parent
021a4bf9d8
commit
ee22b513f9
@ -11,8 +11,8 @@ var RED = [0, 0, 255]; //B, G, R
|
||||
|
||||
cv.readImage('./stuff.png', function(err, im) {
|
||||
|
||||
var big = new cv.Matrix(im.width(), im.height());
|
||||
var all = new cv.Matrix(im.width(), im.height());
|
||||
var big = new cv.Matrix(im.height(), im.width());
|
||||
var all = new cv.Matrix(im.height(), im.width());
|
||||
|
||||
im.convertGrayscale();
|
||||
im_canny = im.copy();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user