Skip to content

Instantly share code, notes, and snippets.

@jeroen
Last active April 1, 2021 14:20
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jeroen/53a5f721cf81de2acba82ea47d0b19d0 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