RGB2YPbPr: Convert RGB coordinates to YPbPr

Description Usage Arguments Value Author(s) Source References Examples

View source: R/colorscience.R

Description

RGB2YPbPr Converts RGB coordinates to YPbPr.

Usage

1
RGB2YPbPr(RGBmatrix) 

Arguments

RGBmatrix

RGB coordinates

Value

YPbPr coordinates

Author(s)

Jose Gama

Source

Alex Izvorski, Copyright 2003-2005 (Portions Copyright 2001-2003 by Alfred Reibenschuh) Graphics/ColorObject version 0.5.0 http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.txt

References

Alex Izvorski, Copyright 2003-2005 (Portions Copyright 2001-2003 by Alfred Reibenschuh) Graphics/ColorObject version 0.5.0 http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.txt

Examples

1
2
RGB<-c(124,63,78)
RGB2YPbPr(RGB)

Example output

Loading required package: Hmisc
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2

Attaching package:HmiscThe following objects are masked frompackage:base:

    format.pval, units

Loading required package: pracma

Attaching package:pracmaThe following object is masked frompackage:Hmisc:

    ceil

Loading required package: sp
          [,1]
[1,] 82.949000
[2,] -2.792896
[3,] 29.280320

colorscience documentation built on Oct. 30, 2019, 9:33 a.m.