View source: R/read_write_exr.R
| read_exr | R Documentation |
Load an RGBA OpenEXR image into R numeric matrices.
read_exr(path, array = FALSE)
path |
Character scalar. Path to an '.exr' file. |
array |
Default 'FALSE'. Return a 4-layer RGBA array instead of a list. |
A list with elements 'r', 'g', 'b', 'a' (numeric matrices), and the integer dimensions 'width', 'height'.
#Write the included data to an EXR file
tmpfile = tempfile(fileext = ".exr")
write_exr(tmpfile,
widecolorgamut[,,1],
widecolorgamut[,,2],
widecolorgamut[,,3],
widecolorgamut[,,4])
exr_file = read_exr(tmpfile)
str(exr_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.