mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-12 03:10:03 +01:00
TRYING SO HARD TO FIX IT (#950)
This commit is contained in:
committed by
Jeffrey Warren
parent
9f524615a5
commit
a51644963a
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user