Parse info.json to set module defaults (#650)

* changes

* changes

* changes

* changes

* changes

* changes
This commit is contained in:
Mridul97
2019-02-06 21:40:54 +05:30
committed by Jeffrey Warren
parent 6b305a02f5
commit 6153dbfdaa
19 changed files with 13833 additions and 13713 deletions

View File

@@ -3,9 +3,10 @@
*/
module.exports = function edgeDetect(options, UI) {
options.blur = options.blur || 2;
options.highThresholdRatio = options.highThresholdRatio || 0.2;
options.lowThresholdRatio = options.lowThresholdRatio || 0.15;
var defaults = require('./../../util/getDefaults.js')(require('./info.json'));
options.blur = options.blur || defaults.blur;
options.highThresholdRatio = options.highThresholdRatio || defaults.highThresholdRatio;
options.lowThresholdRatio = options.lowThresholdRatio || defaults.lowThresholdRatio;
var output;