Edge Detect - brianchirls/Seriously.js GitHub Wiki
seriously.edge.js
Edge detection results in an image that is mostly black except for bright areas that correspond to edges in the original image. It is usually used for feature detection and extraction, but it can be combined with other effects and looks pretty neat on its own.
Parameters
source(image) - image to be processedmode(enum) - which algorithm to use for edge detection- options:
- 'sobel': use Sobel operator
- 'frei-chen': less sensitive to noise than Sobel
- default: sobel
- options:
Notes
See this article for an explanation of the difference between the two modes.
Roadmap
- Allow edge detection on a per-channel basis
Credits and License
By Brian Chirls
Released under MIT License along with Seriously.js
Inspired by an article by Daniel Rákos (a.k.a. aqnuep).