From e68ad325f07118cea41de44d3b3b973928984179 Mon Sep 17 00:00:00 2001 From: Andy Dayton Date: Sat, 23 Jan 2016 15:36:40 -0500 Subject: [PATCH] Had to update jsfeat_detect to work with npm version of jsfeat --- examples/clm_image.html | 2 +- examples/ext_js/jsfeat_detect.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/clm_image.html b/examples/clm_image.html index dfe237f8..34e84fdb 100644 --- a/examples/clm_image.html +++ b/examples/clm_image.html @@ -73,7 +73,7 @@ - + diff --git a/examples/ext_js/jsfeat_detect.js b/examples/ext_js/jsfeat_detect.js index 9dead754..2640ab1b 100644 --- a/examples/ext_js/jsfeat_detect.js +++ b/examples/ext_js/jsfeat_detect.js @@ -29,8 +29,8 @@ var jsfeat_face = function(image) { work_ctx.drawImage(image, 0, 0); } var imageData = work_ctx.getImageData(0, 0, w, h); - - jsfeat.imgproc.grayscale(imageData.data, img_u8.data); + + jsfeat.imgproc.grayscale(imageData.data, w, h, img_u8); jsfeat.imgproc.equalize_histogram(img_u8, img_u8);