From ee22b513f9ee4b504eeb16d4ebf5a085f4def687 Mon Sep 17 00:00:00 2001 From: Jeff Crouse Date: Sat, 15 Mar 2014 15:29:04 -0400 Subject: [PATCH] swap width/height in Matrix constructor Matrix constructor is (rows, cols)/(height,width) --- examples/contours.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/contours.js b/examples/contours.js index aaa971b..6187197 100755 --- a/examples/contours.js +++ b/examples/contours.js @@ -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();