read_exr {picohdr}R Documentation

Read an EXR image

Description

Currently only single-part scanline images are supported (where the compression is one of NONE, ZIP or ZIPS).

Usage

read_exr(filename, verbosity = 0)

Arguments

filename

EXR filename or connection

verbosity

Level of debugging output. Default: 0 (no debugging output)

Value

Numeric array with names along the third dimension. Each plane in the array corresponds to a channel in the EXR.

Examples

filename <- system.file("image/rstats.exr", package = "picohdr")
images <- read_exr(filename)
dimnames(images)[[3]]

# Naively adjust one of the images for display
im <- adj_rescale(images[, , 'dzdy'], lo = 0, hi = 1)
plot(im)

[Package picohdr version 0.1.1 Index]