Signed-off-by: tech4GT <varun.gupta1798@gmail.com>
This commit is contained in:
Varun Gupta
2018-02-21 03:58:19 +05:30
committed by Jeffrey Warren
parent 5922b0de58
commit 27ee18b3d2
12 changed files with 869 additions and 207 deletions

View File

@@ -26,7 +26,7 @@ module.exports = function edgeDetect(options,UI) {
// Extra Manipulation function used as an enveloper for applying gaussian blur and Convolution
function extraManipulation(pixels){
pixels = require('ndarray-gaussian-filter')(pixels,options.blur)
return require('./EdgeUtils')(pixels,options.highThresholdRatio,options.lowThresholdRatio)
return require('./EdgeUtils')(pixels,options.highThresholdRatio,options.lowThresholdRatio,options.inBrowser)
}
function changePixel(r, g, b, a) {
@@ -51,6 +51,7 @@ module.exports = function edgeDetect(options,UI) {
extraManipulation: extraManipulation,
format: input.format,
image: options.image,
inBrowser: inBrowser,
callback: callback
});