swap width/height in Matrix constructor

Matrix constructor is (rows, cols)/(height,width)
This commit is contained in:
Jeff Crouse 2014-03-15 15:29:04 -04:00
parent 021a4bf9d8
commit ee22b513f9

View File

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