Learn R Programming

imager (version 0.45.8)

RGBtoHSL: Colour space conversions in imager

Description

All functions listed here assume the input image has three colour channels (spectrum(im) == 3)

Usage

RGBtoHSL(im)

RGBtoXYZ(im)

XYZtoRGB(im)

HSLtoRGB(im)

RGBtoHSV(im)

HSVtoRGB(im)

RGBtoHSI(im)

HSItoRGB(im)

RGBtosRGB(im)

sRGBtoRGB(im)

RGBtoYCbCr(im)

YCbCrtoRGB(im)

RGBtoYUV(im)

YUVtoRGB(im)

LabtoRGB(im)

RGBtoLab(im)

LabtoXYZ(im)

XYZtoLab(im)

LabtosRGB(im)

sRGBtoLab(im)

Arguments

im

an image

Functions

  • RGBtoHSL(): RGB to HSL conversion

  • RGBtoXYZ(): CIE RGB to CIE XYZ (1931) conversion, D65 white point

  • XYZtoRGB(): CIE XYZ to CIE RGB (1931) conversion, D65 white point

  • HSLtoRGB(): HSL to RGB conversion

  • RGBtoHSV(): RGB to HSV conversion

  • HSVtoRGB(): HSV to RGB conversion

  • RGBtoHSI(): RGB to HSI conversion

  • HSItoRGB(): HSI to RGB conversion

  • RGBtosRGB(): RGB to sRGB conversion

  • sRGBtoRGB(): sRGB to RGB conversion

  • RGBtoYCbCr(): RGB to YCbCr conversion

  • YCbCrtoRGB(): YCbCr to RGB conversion

  • RGBtoYUV(): RGB to YUV conversion

  • YUVtoRGB(): YUV to RGB conversion

  • LabtoRGB(): Lab to RGB (linear)

  • RGBtoLab(): RGB (linear) to Lab

  • LabtoXYZ(): Lab to XYZ

  • XYZtoLab(): XYZ to Lab

  • LabtosRGB(): Lab to sRGB

  • sRGBtoLab(): sRGB to Lab