-
Notifications
You must be signed in to change notification settings - Fork 354
Edge Detect
brianchirls edited this page Jan 17, 2012
·
1 revision
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.
-
source
(image) - image to be processed -
mode
(enum) - which algorithm to use for edge detection- options:
- 'sobel': use Sobel operator
- 'frei-chen': less sensitive to noise than Sobel
- default: sobel
- options:
See this article for an explanation of the difference between the two modes.
- Allow edge detection on a per-channel basis
By Brian Chirls
Released under MIT License along with Seriously.js
Inspired by an article by Daniel Rákos (a.k.a. aqnuep).