tmp-tests/test-magick.R

file <- "inst/extdata/plot.gif"
img <- img_read(file) %>% img_scale(0.2)
mat <- drop(as.numeric(magick::image_data(img, channels = "gray")))
mat2 <- img2coord:::img2mat(img)
dim(mat)
table(mat)
privefl/img2coord documentation built on May 17, 2019, 10:39 a.m.