inspirit / jsfeat

JavaScript Computer Vision library.
MIT License
2.74k stars 372 forks source link

Canny edge demo broken #15

Closed rickygrows closed 11 years ago

rickygrows commented 11 years ago

Canny edge detection demo producing a javascript error and failing to run. Stack trace:

Uncaught ReferenceError: w0 is not defined jsfeat-min.js:1

a.canny jsfeat-min.js:1 tick

Error repeats itself every requestAnimationFrame tick.

Tested in Chrome 26.0.1410.65 stable

soulcyon commented 11 years ago

Instead of w0 and h0, I think it should be:

var l = new jsfeat.matrix_t(C, L, jsfeat.S32C2_t, p.data);

inspirit commented 11 years ago

yep thanx for the heads up. after changing derivatives methods i messed it. now everything should be fine