library(tidyverse)
library(magick)
image_read("fig/LJM_profile.jpg")
LJM <-
LJM %>%
LJM_resized <- image_resize("100")
LJM_resized
image_read("fig/road.jpg")
road <-
road %>%
road_resized <- image_resize("500")
road_resized
%>%
road_resized image_composite(LJM_resized,
offset = "+400+200")
LJM_resized %>%
LJM_tranparent <- image_transparent(color = "#EAEEF0")
%>%
road_resized image_composite(LJM_tranparent,
offset = "+400+200")
image_read_svg("http://www.supercoloring.com/sites/default/files/silhouettes/2015/05/cairn-terrier-black-silhouette.svg")
dog_img <-
dog_img %>%
dog_transparent <- image_transparent('white')
image_append(c(dog_img %>% image_resize(200),
%>% image_resize(200),
dog_transparent %>% image_resize(300))) road_resized
%>%
dog_img image_transparent('white') %>%
image_resize(300) %>%
image_composite(road_resized)
library(imager)
%>%
LJM_resized image_background("blue") %>%
image_border( color = "red")
magick2cimg(LJM_resized, alpha="flatten")
LJM_imager <-
LJM_imager
Image. Width: 100 pix Height: 133 pix Depth: 1 Colour channels: 3
데이터 과학자 이광춘 저작
kwangchun.lee.7@gmail.com