【R】rayimage
2021年6月28日
1. はじめに
rayimage
は、画像処理をおこなってくれるツールです。
2. インストール
Githubからインストールします。
remotes::install_github("tylermorganwall/rayimage")
3. つかってみる
例にあるものをサッと確認してみます。
library(rayimage) par(mfrow = c(1,2)) plot_image(dragon) image(dragondepth, col = hcl.colors(256, "YlOrRd", rev = TRUE), axes=FALSE, asp=1)

ボケもできます。
render_bokeh(dragon,dragondepth,focus=900,focallength = 400, fstop = 16, bokehshape = "hex") render_bokeh(dragon,dragondepth,focus=900,focallength = 300, bokehshape = "hex", bokehintensity = 5)

4. さいごに
いろいろ機能があるパッケージのようです。