Learn R Programming

recolorize (version 0.2.0)

col2col: Modified convertColor

Description

Just like grDevices::convertColor, but with HSV as an option.

Usage

col2col(
  pixel_matrix,
  from = c("sRGB", "Lab", "Luv", "HSV"),
  to = c("sRGB", "Lab", "Luv", "HSV"),
  ref_white = "D65"
)

Value

A pixel matrix in the specified to color space.

Arguments

pixel_matrix

A matrix of pixel colors, rows are pixels and columns are channels.

from

Color space to convert from.

to

Color space to convert to.

ref_white

Reference white.

Details

As my mother used to say: good enough for government work.