Image Processing for Simulated Cameras

Uses convolution-based techniques to generate simulated camera bokeh, depth of field, and other camera effects, using an image and an optional depth map. Accepts both filename inputs and in-memory array representations of images and matrices, including common raster formats such as 'JPEG', 'PNG', 'TIFF', 'TGA', 'BMP', 'PSD', 'GIF', 'HDR', 'PIC', 'PNM', 'DNG', and 'EXR'. Includes functions to perform 2D convolutions, color correction, colorspace conversion, image/matrix reorientation and resizing, image and text overlays, exposure adjustment, camera vignette effects, and image titles.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rayimage")

0.27.1 by Tyler Morgan-Wall, 21 days ago


https://www.rayimage.dev, https://github.com/tylermorganwall/rayimage


Report a bug at https://github.com/tylermorganwall/rayimage/issues


Browse source code at https://github.com/cran/rayimage


Authors: Tyler Morgan-Wall [aut, cph, cre] (ORCID:


Documentation:   PDF Manual  


GPL-3 license


Imports Rcpp, png, jpeg, grDevices, grid, tiff, systemfonts, ragg

Suggests magick, testthat, libopenexr, cli

Linking to Rcpp, RcppArmadillo, progress, tinydng, stbimageheaders


Imported by rayrender, rayshader, rayvertex, skymodelr.

Suggested by raymolecule.


See at CRAN