render_to_display: Render To Display

View source: R/render_to_display.R

render_to_displayR Documentation

Render To Display

Description

Convert an image from its working space to a display space, and optionally apply sRGB OETF for viewing.

Usage

render_to_display(image, display = CS_SRGB, encode = TRUE, adapt_white = TRUE)

Arguments

image

A rayimg, array, or filename.

display

Default CS_SRGB. Target display RGB space.

encode

Default TRUE. If TRUE, apply sRGB OETF (only valid when display is sRGB-like).

adapt_white

Default TRUE. Whether to perform CAT from working white to display white.

Value

A rayimg when encode=FALSE, or a rayimg with sRGB-encoded RGB when encode=TRUE.


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