Last active
April 1, 2021 14:20
-
-
Save jeroen/53a5f721cf81de2acba82ea47d0b19d0 to your computer and use it in GitHub Desktop.
Magick canny edge detector
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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