Skip to content

Instantly share code, notes, and snippets.

@jeroen
Last active April 1, 2021 14:20
Show Gist options
  • Save jeroen/53a5f721cf81de2acba82ea47d0b19d0 to your computer and use it in GitHub Desktop.
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