Learn R Programming

libopenexr (version 3.4.0-5)

write_exr: Write an OpenEXR image

Description

Save RGBA numeric matrices to an OpenEXR file (32‑bit float, ZIP compression).

Usage

write_exr(path, r, g, b, a = matrix(1, nrow = nrow(r), ncol = ncol(r)))

Value

None.

Arguments

path

Character scalar output file.

r

Numeric matrix, red channel.

g

Numeric matrix, green channel.

b

Numeric matrix, blue channel.

a

Numeric matrix, alpha channel.

Examples

Run this code
#Write the included data to an EXR file
tmpfile = tempfile(fileext = ".exr")
write_exr(tmpfile,
          widecolorgamut[,,1],
          widecolorgamut[,,2],
          widecolorgamut[,,3],
          widecolorgamut[,,4])

Run the code above in your browser using DataLab