Fix addweighted

This commit is contained in:
Peter Braden 2014-10-15 20:15:29 +02:00
parent c42422a715
commit ea7f25962c

View File

@ -3,12 +3,12 @@ var cv = require('../lib/opencv');
cv.readImage("./examples/files/mona.png", function(err, orig) {
if (err) throw err;
cv.readImage("./examples/over_text.png", function(err, over_text) {
cv.readImage("./examples/files/over_text.png", function(err, over_text) {
if (err) throw err;
var result = new cv.Matrix(orig.width(), orig.height());
result.addWeighted(orig, 0.7, over_text, 0.9);
result.save("./tmp/weighted.png");
console.log('Image saved to ./tmp/weighted.png');
result.save("./examples/tmp/weighted.png");
console.log('Image saved to ./examples/tmp/weighted.png');
});
});