apply_color_matrix: Apply a 3x3 color transform to an image

View source: R/colorspace_helpers.R

apply_color_matrixR Documentation

Apply a 3x3 color transform to an image

Description

Apply a 3x3 color transform to an image

Usage

apply_color_matrix(img, M = diag(3))

Arguments

img

3/4-channel array (RGB/A). 2D (grey) or 2-channel (grey+alpha) pass through.

M

3x3 matrix.

Value

Array with transformed RGB; alpha preserved.


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