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