Skip to content
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.

Parameters

  • 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

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).

Clone this wiki locally