Skip to content

Commit

Permalink
cleared remaining weak edges
Browse files Browse the repository at this point in the history
Signed-off-by: tech4GT <varun.gupta1798@gmail.com>
  • Loading branch information
tech4GT committed Feb 16, 2018
1 parent 47393f6 commit 33f7baf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ function hysteresis(pixels){
}
}
}
weakEdgePixels.forEach(pix=>pixels.set(pix[0],pix[1],3,0))
return pixels
}

Expand Down
2 changes: 1 addition & 1 deletion src/modules/EdgeDetect/Module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('./Convolution')(pixels,options.highThresholdRatio,options.lowThresholdRatio)
return require('./EdgeUtils')(pixels,options.highThresholdRatio,options.lowThresholdRatio)
}

function changePixel(r, g, b, a) {
Expand Down
3 changes: 0 additions & 3 deletions src/modules/EdgeDetect/NonMaxSupression.js

This file was deleted.

0 comments on commit 33f7baf

Please sign in to comment.