TRYING SO HARD TO FIX IT (#950)

This commit is contained in:
MichaelLin250
2019-03-28 21:29:41 -04:00
committed by Jeffrey Warren
parent 9f524615a5
commit a51644963a

View File

@@ -7,7 +7,7 @@ module.exports = function edgeDetect(options, UI) {
options.blur = options.blur || defaults.blur; options.blur = options.blur || defaults.blur;
options.highThresholdRatio = options.highThresholdRatio || defaults.highThresholdRatio; options.highThresholdRatio = options.highThresholdRatio || defaults.highThresholdRatio;
options.lowThresholdRatio = options.lowThresholdRatio || defaults.lowThresholdRatio; options.lowThresholdRatio = options.lowThresholdRatio || defaults.lowThresholdRatio;
options.hystereis = options.hysteresis || defaults.hysteresis; options.hysteresis = options.hysteresis || defaults.hysteresis;
var output; var output;
@@ -27,7 +27,7 @@ module.exports = function edgeDetect(options, UI) {
function extraManipulation(pixels) { function extraManipulation(pixels) {
pixels = require('ndarray-gaussian-filter')(pixels, options.blur); pixels = require('ndarray-gaussian-filter')(pixels, options.blur);
pixels = require('./EdgeUtils')(pixels, options.highThresholdRatio, options.lowThresholdRatio, options.hystereis); pixels = require('./EdgeUtils')(pixels, options.highThresholdRatio, options.lowThresholdRatio, options.hysteresis);
return pixels; return pixels;
} }