Learn R Programming

⚠️There's a newer version (1.0.8) of this package.Take me there.

colorscience (version 1.0.1)

Color Science Methods and Data

Description

Methods and data for color science - color conversions by observer, illuminant and gamma. Color matching functions and chromaticity diagrams. Color indices, color differences and spectral data conversion/analysis.

Copy Link

Version

Install

install.packages('colorscience')

Monthly Downloads

699

Version

1.0.1

License

GPL (>= 3)

Maintainer

Jose Gama

Last Published

July 23rd, 2015

Functions in colorscience (1.0.1)

CIE1960UCS2CIE1964

Convert CIE 1960 UCS color space to CIE 1964 color space
CCT2XYZ

Convert CCT to XYZ
CIE1976uv2CIE1960uv

CIE-1976 u'v' to CIE-1960 uv
MunsellV2relativeLuminanceY

Munsell value V to relative luminance Y
CIEluminanceY2NCSblackness

approximated NCS blackness s by the CIE luminance factor Y
LEF2RGB

Convert LEF coordinates to RGB
StearnsStearnscorrection

Stearns and Stearns correction
Taube60.Whiteness

Taube Whiteness
VosWalraven2degConeFundamentals1971

Vos & Walraven(1971) 2-deg cone fundamentals
XYZ2RGB

convert from XYZ coordinates to CIE RGB coordinates
Yxy2CIE1960UCS

convert from Yxy coordinates to CIE 1960 UCS
deltaECMC

Delta E CMC
tristimulusMunsell

434 Munsell colors with tristimulus and CMFs for a few illuminants
saturationCIELUV

CIELUV/CIELAB saturation
xy2CCT.McCamy

convert from chromaticity coordinates to correlated color temperature
ASTM.E313.Whiteness

ASTM E313 Whiteness
CIETint

Tint indices: CIE Tint and ASTM E313 Tint
CMYK2CMY

Convert CMYK coordinates to CMY
DIN6167.YellownessIndex

CIE Whiteness
Munsell100hues55FM100

Munsell 100-Hues at 5/5, production numbers 101 to 200 and Farnsworth-Munsell 100 Hue test
NickersonColorDifference

Nickerson Color Difference
PreucilPercentGreyness

Preucil Percentage of Greyness
XYZ2HunterLab

convert from XYZ coordinates to Hunter Lab coordinates
Y2MunsellV

CIE XYZ "Y" to Munsell value
deltaE1976

Delta E (CIE 1976)
spectra2XYZ

convert spectral data to tristimulus values
spectra2CRIGAIFSCI

CRI, GAI and FSCI from spectra
kelvin2xy

Blackbody radiator color temperature to CIE 1931 x,y chromaticity approximation function
whitepointsilluminants

White points of standard illuminants
CIE1931xy2CIE1960uv

Convert CIE 1931 xy color space to CIE 1960 uv color space
CMY2RGB

Convert CMYK coordinates to RGB
GanzGrieser.Whiteness

Ganz and Grieser Whiteness
ChromaticAdaptation

Chromatic adaptation algorithms
DominantWavelength

Convert CMY coordinates to CMYK
HunterLab2XYZ

Convert HunterLab coordinates to XYZ
LUV2LAB

Convert CIE Luv coordinates to CIE Lab
PreucilPercentHueError

Preucil Percentage of Greyness
RGB2PhotoYCC

Convert RGB coordinates to PhotoYCC
MaterialReferenceData

Material Reference Data from Principles of Digital Image Synthesis
StockmanSharpe2degCMFadj2000

Stockman & Sharpe (2000) 2-deg cone fundamentals
XYZ2Yuv

convert from XYZ coordinates to Yuv coordinates
XYZTannenbaum1974

Approximations from wavelengths to XYZ by Tannenbaum 1974
Yuv2xy

convert from Yuv coordinates to xy coordinates
heuristic.wlnm2RGB

Approximations from wavelengths to RGB
createIsoTempLinesTable

table of isotemperature lines for use with the Robertson Method
emittanceblackbodyPlanck

emittance of a black body of temperature T at a given wavelength
xFit_1931

Approximations from wavelengths to XYZ by Wyman et al
CIE.Whiteness

CIE Whiteness
ASTM.D1925.YellownessIndex

ASTM D 1925 Yellowness Index for Plastics
Munsell100hues55

Chromaticity diagram showing values for x and y for Illuminant A for 100 hues at 5/5
CIE1976uvSaturation

CIE 1976 uv Saturation
cccie64

CIE (1964) 10-deg chromaticity coordinates
chromaticity.diagram

Plot the chromaticity diagram
dkl2dklCart

converts between spherical and cartesian coordinates for DKL
illuminantA

Relative spectral power distributions of CIE illuminant A at 1 nm interval
saturationCIECAM02

saturation CIECAM 2002
illuminantD65

Relative spectral power distributions of CIE illuminant D65 at 1 nm interval
spectra2lux

Illuminance (Lux) from spectra
sprague

Interpolates an n by w matrix of spectra, sprague
wlnm2XYZ

Approximates wavelength to CIE tristimulus XYZ
MaxChromaFromExtrapRenotationData

Table with maximum chroma for which extrapolated renotation data is available
Berger59.Whiteness

Berger (59) Whiteness
CIE1931XYZ2CIE1931xyz

Convert CIE 1931 XYZ color space to CIE 1931 xyz color space
CIE1976uv2CIE1931xy

CIE-1976 u'v' to CIE-1931 xy
GanzGrieser.Tint

Ganz and Grieser Tint
HSV2RGB

Convert HSV coordinates to RGB
Maxwell.triangle

Plot the Maxwell triangle
LAB2LUV

Convert CIE Lab coordinates to CIE Luv
RGB2YCbCr

Convert RGB coordinates to YCbCr
StockmanMacLeodJohnson2degStilesBurchConeFundamentals1993

Stockman, MacLeod & Johnson (1993) 2-deg fundamentals
RGB2CMY

Convert sRGB coordinates to CMY
TCSdata

The spectral reflectance data of 14 color test samples for CRI
Yuv2Luv

Convert Yuv coordinates to Luv
chromaticity.diagram.color

Plot the chromaticity diagram line with color
conversionIlluminance

Conversion Factors for Units of Illuminance
ciexyz31

CIE 1931 2-deg, XYZ CMFs
makeChromaticAdaptationMatrix

Generate a Chromatic Adaptation matrix
xyChromaticitiesVos1978

x, y coordinates transformed to Judd (1951) x', y' system
CIE1931XYZ2CIE1976uv

Convert CIE 1931 XYZ color space to CIE 1976 uv color space
CMY2CMYK

Convert CMY coordinates to CMYK
Hue.2.RGB

Convert Hue to RGB
LCHuv2Luv

Convert LCHuv coordinates to CIE Luv
LMS2DKL

Convert LMS coordinates to DKL
ISObrightnessReflectometerRSD

Weighting factors for the calculation of ISO brightness
LCHab2Lab

Convert LCHab coordinates to CIE Lab
Lab2XYZ

Convert CIE Lab coordinates to XYZ
LMS2RGB

Convert LMS coordinates to RGB
DeMarcoPokornySmith2degConeFundamentals1992

DeMarco, Pokorny & Smith (1992) versions of the Smith-Pokorny 2-deg fundamentals
MunsellNeutrals2sRGB

Table with Munsell Neutrals and corresponding sRGB
RGB2YPbPr

Convert RGB coordinates to YPbPr
RGB2hue

Convert sRGB coordinates to hue
Luv2LCHuv

Convert CIE Luv coordinates to LCHuv
SmithPokorny2degConeFundamentals1975

Smith & Pokorny (1975) 2-deg cone fundamentals
RxRyRz2XYZ

convert from three filter measurements (reflectance factors) to XYZ
StockmanMacLeodJohnson10degConeFundamentals1993

Stockman & Sharpe (2000) 10-deg cone fundamentals
Stensby68.Whiteness

Stensby Whiteness
RGB2LEF

Convert RGB coordinates to LEF
WestlandBlacknessIndex

Westland, et al. blackness index
StockmanMacLeodJohnson2degCIEadjConeFundamentals1993

Stockman, MacLeod & Johnson (1993) 2-deg cone fundamentals
RGB2YIQ

Convert RGB coordinates to YIQ
YIQ2RGB

Convert YIQ coordinates to RGB
XYZ2Luv

convert from XYZ coordinates to CIE Luv coordinates
YCbCr2RGB

Convert YCbCr coordinates to RGB
Adjust

Internal colorscience functions
compuphaseDifferenceRGB

compuphase Difference RGB
conversionLuminance

Conversion Factors for Units of Luminance
daylightcomponents

daylight components
RGB2XYZ

Convert sRGB coordinates to XYZ
deltaE1994

Delta E (CIE 1994)
YPbPr2RGB

Convert YCbCr coordinates to RGB
huedegreemunsell

Table with Munsell hue degrees
rgb2dklV

convert RGB to DKL
ciexyz64

CIE 1964 10-deg, XYZ CMFs
spectra2CCT

Correlated Color Temperature (CCT) from spectra
xy2CCT.HernandezAndres

convert from chromaticity coordinates to correlated color temperature (Hernandez Andres)
xyY2XYZ

Convert CIE CMF to XYZ
Yuv2XYZ

convert from Yuv coordinates to XYZ coordinates
MunsellV2Y

Munsell value to CIE XYZ "Y"
XYZperfectreflectingdiffuser

Perfect reflecting diffuser data
footcandle2lux

convert foot candle to Lumens/lux
ASTM.E313.YellownessIndex

ASTM E313 Yellowness
BVR2XYZ

convert from BVR coordinates to XYZ temperature (Robertson)
CIE1976chroma

CIE 1976 chroma formula for CIELab and CIELuv
CIELabtoDIN99

Conversion from CIELAB color space to DIN99 coordinates
CIE1976hueangle

CIE 1976 hue angle formula for CIELab and CIELuv
MunsellSpectral

Table with Munsell spectral data
RGB2HSV

Convert RGB coordinates to HSV
MunsellHues

Table with Munsell Hues
PreucilAngle

Preucil Angle
PhotoYCC2RGB

Convert PhotoYCC to RGB
CIE1960UCS2xy

Convert CIE 1960 UCS color space to 1960 xy color space
Luv2Yuv

Convert CIE Luv coordinates to Yuv
DIN99toCIELab

Conversion from DIN99 coordinates to CIELAB color space
LMS2XYZ

Convert LMS coordinates to XYZ
CIE1931xy2CIE1976uv

Convert CIE 1931 xy color space to CIE 1976 uv color space
CIE1931XYZ2CIE1960uv

Convert CIE 1931 XYZ color space to CIE 1960 uv color space
Lab2LCHab

Convert CIE Lab coordinates to LCHab
MaxChromasForStandardMunsellHuesAndValues

Table with maximum Munsell chroma, for a given Munsell hue and value, for which an extrapolated renotation value is available
Luv2XYZ

Convert CIE Luv coordinates to XYZ
RGB2HSL

Convert RGB coordinates to HSL
HSL2RGB

Convert HSL coordinates to RGB
RGB2LSLM

Convert RGB coordinates to LSLM
RGB2YUV

Convert RGB coordinates to YUV
StockmanSharpe10degCMFS2000

Stockman & Sharpe (2000) 10-deg cone fundamentals
XYZ2LMS

Convert XYZ coordinates to LMS
XYZ2CCT.Robertson

convert from chromaticity coordinates to correlated color temperature (Robertson)
XYZ2Lab

convert from XYZ coordinates to CIE Lab coordinates
XYZ2xyY

convert from XYZ coordinates to xyY coordinates
VosEstevezWalraven2degConeFundamentals1990

Vos, Estévez & Walraven (1990) 2-deg cone fundamentals
XYZMoonSpencer1945

Approximations from wavelengths to XYZ by Moon & Spencer
XYZ2RxRyRz

convert from XYZ to three filter measurements (reflectance factors)
Y2MunsellVtable1D1535

CIE XYZ "Y" to Munsell value formula, based on the ASTM Standard D1535-08
RGB2LMS

Convert RGB coordinates to LMS
YUV2RGB

Convert YUV coordinates to RGB
XYZtoRGB

convert from XYZ coordinates to RGB
dkl2rgb

convert RGB to DKL
huedegree

convert Munsell hue to degree
footcandle2watt.sqcentimeter

converts foot candle to watts / square centimeter
spectra2ISObrightness

Diffuse blue reflectance factor (ISO brightness)
saturationCIELABEvaLubbe

CIELAB saturation (Eva Lubbe)
deltaE2000

Delta E (CIE 2000)
illuminants

Relative spectral power distributions of CIE illuminants at 5 nm interval
cccie31

CIE (1931) 2-deg chromaticity coordinates
whitepointsRGB

Primaries for RGB color spaces
footcandle2candela.steradian.sqmeter

converts foot candle to candela steradian / square meter
Hunter60.WhitenessIndex

Hunter 60 Whiteness Index
Yxy2Yuv

convert from Yxy coordinates to Yuv coordinates
XYZ2BVR

convert from XYZ coordinates to BVR
LSLM2RGB

Convert LSLM coordinates to RGB