Skip to content

Commit 6e6bc78

Browse files
Uses four channel grayscale on sobel
1 parent 4acafe2 commit 6e6bc78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/Image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
* @return {array} The edge pixels in a linear [r,g,b,a,...] array.
301301
*/
302302
tracking.Image.sobel = function(pixels, width, height) {
303-
pixels = this.grayscale(pixels, width, height);
303+
pixels = this.grayscale(pixels, width, height, true);
304304
var output = new Float32Array(width * height * 4);
305305
var sobelSignVector = new Float32Array([-1, 0, 1]);
306306
var sobelScaleVector = new Float32Array([1, 2, 1]);

0 commit comments

Comments
 (0)