-
-
Save briatte/99eec371aa217f54c6f5f801f12cbc86 to your computer and use it in GitHub Desktop.
Magick canny edge detector
This file contains hidden or 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