RGB2YCbCr: Convert RGB coordinates to YCbCr

Description Usage Arguments Value Author(s) Source References Examples

View source: R/colorscience.R

Description

RGB2YCbCr Converts RGB coordinates to YCbCr.

Usage

1
RGB2YCbCr(RGBmatrix) 

Arguments

RGBmatrix

RGB coordinates

Value

YCbCr 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)
RGB2YCbCr(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: 'Hmisc'

The following objects are masked from 'package:base':

    format.pval, units

Loading required package: pracma

Attaching package: 'pracma'

The following object is masked from 'package:Hmisc':

    ceil

Loading required package: sp
          [,1]
[1,] 18165.831
[2,]  -625.617
[3,]  6558.790

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