peterbraden/node-opencv — pull request #13 by wadey (2012-08-02 06:20:51+00:00)
Title: expose Mat(Mat, Rect) constructor

This is so you can create a clone of a ROI (Rectangle of Interest).

Example:

cv.readImage('./mona.png', function(err, im) {
var x = 50, y = 50, width = 100, height = 100;

var imSubset = new cv.Matrix(im, x, y, width, height);

// Use imSubset just like it is im
}