Skip to content

Instantly share code, notes, and snippets.

@briatte
Forked from jeroen/canny.R
Created August 28, 2017 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briatte/99eec371aa217f54c6f5f801f12cbc86 to your computer and use it in GitHub Desktop.
Save briatte/99eec371aa217f54c6f5f801f12cbc86 to your computer and use it in GitHub Desktop.
Magick canny edge detector
library(magrittr)
library(magick)
image_read("logo:") %>%
image_convert('png', colorspace = 'gray') %>%
image_edge(radius = 1) %>%
image_negate() %>%
image_transparent('white', 10000) %>%
image_background("white") %>%
image_browse()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment