rayimg: Create a rayimg

View source: R/rayimg.R

rayimgR Documentation

Create a rayimg

Description

This class will always be:

  • A matrix or a 2/3/4 layer array

  • It tracks whether the source data was linearized

  • It carries working colorspace/white

  • It carries informational exposure/ISO metadata

Usage

rayimg(
  x = NULL,
  filetype = NULL,
  source_linear = FALSE,
  colorspace = CS_ACESCG,
  white_current = colorspace$white_xyz,
  exposure = attr(x, "exposure", exact = TRUE),
  iso = attr(x, "iso", exact = TRUE)
)

Arguments

x

Default NULL. The underlying array/matrix to wrap.

filetype

Default NULL. Original source type to record (e.g., "png").

source_linear

Default FALSE. Whether the original source was linearized.

colorspace

Default CS_ACESCG. Working space descriptor (see make_colorspace()).

white_current

Default colorspace$white_xyz. Current assumed scene/display white (XYZ, Y=1).

exposure

Default 0. Informational exposure compensation in stops.

iso

Default 100. Informational ISO value.

Value

An object of class ⁠c("rayimg", <original class>)⁠ with attributes.


rayimage documentation built on June 12, 2026, 5:06 p.m.

Related to rayimg in rayimage...