Learn R Programming

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

colorscience (version 1.0.2)

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.2

License

GPL (>= 3)

Maintainer

Jose Gama

Last Published

February 28th, 2016

Functions in colorscience (1.0.2)

CIE1931xy2CIE1976uv

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

Chromatic adaptation algorithms
MunsellHues

Table with Munsell Hues
CIE1976uv2CIE1960uv

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

Munsell value to CIE XYZ "Y"
RGB2PhotoYCC

Convert RGB coordinates to PhotoYCC
RGB2hue

Convert sRGB coordinates to hue
RGB2YUV

Convert RGB coordinates to YUV
ciexyz31

CIE 1931 2-deg, XYZ CMFs
dkl2rgb

convert RGB to DKL
PhotoYCC2RGB

Convert PhotoYCC to RGB
xy2CCT.HernandezAndres

convert from chromaticity coordinates to correlated color temperature (Hernandez Andres)
ASTM.E313.Whiteness

ASTM E313 Whiteness
CIEluminanceY2NCSblackness

approximated NCS blackness s by the CIE luminance factor Y
CIE1960UCS2xy

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

convert Munsell notation to numeric HVC
DIN6167.YellownessIndex

CIE Whiteness
NickersonColorDifference

Nickerson Color Difference
MunsellSpectral

Table with Munsell spectral data
RGB2YPbPr

Convert RGB coordinates to YPbPr
SmithPokorny2degConeFundamentals1975

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

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

convert from XYZ coordinates to Hunter Lab coordinates
StockmanMacLeodJohnson10degConeFundamentals1993

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

convert from Yuv coordinates to xy coordinates
YCbCr2RGB

Convert YCbCr coordinates to RGB
XYZMoonSpencer1945

Approximations from wavelengths to XYZ by Moon & Spencer
footcandle2lux

convert foot candle to Lumens/lux
spectra2ISObrightness

Diffuse blue reflectance factor (ISO brightness)
whitepointsRGB

Primaries for RGB color spaces
daylightcomponents

daylight components
xy2CCT.McCamy

convert from chromaticity coordinates to correlated color temperature
spectra2XYZ

convert spectral data to tristimulus values
ASTM.E313.YellownessIndex

ASTM E313 Yellowness
Berger59.Whiteness

Berger (59) Whiteness
CIE1931xy2CIE1960uv

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

CIE 1976 uv Saturation
CIE1976chroma

CIE 1976 chroma formula for CIELab and CIELuv
CIETint

Tint indices: CIE Tint and ASTM E313 Tint
HSV2RGB

Convert HSV coordinates to RGB
LUV2LAB

Convert CIE Luv coordinates to CIE Lab
Munsell100hues55FM100

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

Convert HSL coordinates to RGB
StockmanSharpe2degCMFadj2000

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

convert from XYZ coordinates to CIE Luv coordinates
XYZ2RxRyRz

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

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

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

Convert LCHuv coordinates to CIE Luv
xyChromaticitiesVos1978

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

White points of standard illuminants
CIE1931XYZ2CIE1931xyz

Convert CIE 1931 XYZ color space to CIE 1931 xyz color space
GanzGrieser.Whiteness

Ganz and Grieser Whiteness
LMS2RGB

Convert LMS coordinates to RGB
RGB2CMY

Convert sRGB coordinates to CMY
RGB2LSLM

Convert RGB coordinates to LSLM
RGB2YIQ

Convert RGB coordinates to YIQ
RGB2XYZ

Convert sRGB coordinates to XYZ
RGB2HSL

Convert RGB coordinates to HSL
RxRyRz2XYZ

convert from three filter measurements (reflectance factors) to XYZ
Stensby68.Whiteness

Stensby Whiteness
WestlandBlacknessIndex

Westland, et al. blackness index
Yxy2CIE1960UCS

convert from Yxy coordinates to CIE 1960 UCS
chromaticity.diagram.color

Plot the chromaticity diagram line with color
deltaE2000

Delta E (CIE 2000)
makeChromaticAdaptationMatrix

Generate a Chromatic Adaptation matrix
Adjust

Internal colorscience functions
saturationCIELUV

CIELUV/CIELAB saturation
tristimulusMunsell

434 Munsell colors with tristimulus and CMFs for a few illuminants
footcandle2watt.sqcentimeter

converts foot candle to watts / square centimeter
YUV2RGB

Convert YUV coordinates to RGB
CIE1976hueangle

CIE 1976 hue angle formula for CIELab and CIELuv
MaxChromasForStandardMunsellHuesAndValues

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

Convert CIE 1931 XYZ color space to CIE 1960 uv color space
Maxwell.triangle

Plot the Maxwell triangle
Luv2LCHuv

Convert CIE Luv coordinates to LCHuv
RGB2LEF

Convert RGB coordinates to LEF
Taube60.Whiteness

Taube Whiteness
TCSdata

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

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

Approximations from wavelengths to XYZ by Tannenbaum 1974
Luv2XYZ

Convert CIE Luv coordinates to XYZ
spectra2lux

Illuminance (Lux) from spectra
sprague

Interpolates an n by w matrix of spectra, sprague
xFit_1931

Approximations from wavelengths to XYZ by Wyman et al
ISObrightnessReflectometerRSD

Weighting factors for the calculation of ISO brightness
YPbPr2RGB

Convert YCbCr coordinates to RGB
illuminantD65

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

Convert CIE Lab coordinates to XYZ
Yxy2Yuv

convert from Yxy coordinates to Yuv coordinates
Hunter60.WhitenessIndex

Hunter 60 Whiteness Index
CIE.Whiteness

CIE Whiteness
LSLM2RGB

Convert LSLM coordinates to RGB
PreucilPercentGreyness

Preucil Percentage of Greyness
CCT2XYZ

Convert CCT to XYZ
DominantWavelength

Convert CMY coordinates to CMYK
RGB2YCbCr

Convert RGB coordinates to YCbCr
CMY2RGB

Convert CMYK coordinates to RGB
StearnsStearnscorrection

Stearns and Stearns correction
cccie31

CIE (1931) 2-deg chromaticity coordinates
XYZ2LMS

Convert XYZ coordinates to LMS
ASTM.D1925.YellownessIndex

ASTM D 1925 Yellowness Index for Plastics
BVR2XYZ

convert from BVR coordinates to XYZ temperature (Robertson)
CheckColorLookup

convert Munsell notation to numeric HVC
LCHab2Lab

Convert LCHab coordinates to CIE Lab
Y2MunsellV

CIE XYZ "Y" to Munsell value
PreucilAngle

Preucil Angle
XYZ2BVR

convert from XYZ coordinates to BVR
XYZ2RGB

convert from XYZ coordinates to CIE RGB coordinates
Yuv2Luv

Convert Yuv coordinates to Luv
CIE1976uv2CIE1931xy

CIE-1976 u'v' to CIE-1931 xy
MunsellNeutrals2sRGB

Table with Munsell Neutrals and corresponding sRGB
wlnm2XYZ

Approximates wavelength to CIE tristimulus XYZ
CMYK2CMY

Convert CMYK coordinates to CMY
CentralsISCCNBS

Central notations for the revised ISCC-NBS
CIE1960UCS2CIE1964

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

Table with Munsell hue degrees
XYZ2xyY

convert from XYZ coordinates to xyY coordinates
Hue.2.RGB

Convert Hue to RGB
MaterialReferenceData

Material Reference Data from Principles of Digital Image Synthesis
LEF2RGB

Convert LEF coordinates to RGB
CIELabtoDIN99

Conversion from CIELAB color space to DIN99 coordinates
CMY2CMYK

Convert CMY coordinates to CMYK
illuminants

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

Convert LMS coordinates to XYZ
RGB2HSV

Convert RGB coordinates to HSV
LAB2LUV

Convert CIE Lab coordinates to CIE Luv
MunsellV2relativeLuminanceY

Munsell value V to relative luminance Y
DeMarcoPokornySmith2degConeFundamentals1992

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

Perfect reflecting diffuser data
compuphaseDifferenceRGB

compuphase Difference RGB
deltaE1976

Delta E (CIE 1976)
LMS2DKL

Convert LMS coordinates to DKL
RGB2LMS

Convert RGB coordinates to LMS
HunterLab2XYZ

Convert HunterLab coordinates to XYZ
StockmanMacLeodJohnson2degStilesBurchConeFundamentals1993

Stockman, MacLeod & Johnson (1993) 2-deg fundamentals
XYZ2CCT.Robertson

convert from chromaticity coordinates to correlated color temperature (Robertson)
GanzGrieser.Tint

Ganz and Grieser Tint
emittanceblackbodyPlanck

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

Conversion Factors for Units of Illuminance
StockmanMacLeodJohnson2degCIEadjConeFundamentals1993

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

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

Convert CIE Lab coordinates to LCHab
CIE1931XYZ2CIE1976uv

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

Delta E (CIE 1994)
deltaECMC

Delta E CMC
cccie64

CIE (1964) 10-deg chromaticity coordinates
footcandle2candela.steradian.sqmeter

converts foot candle to candela steradian / square meter
XYZ2Yuv

convert from XYZ coordinates to Yuv coordinates
huedegree

convert Munsell hue to degree
spectra2CCT

Correlated Color Temperature (CCT) from spectra
MunsellSpecToHVC

convert Munsell notation to numeric HVC
Munsell100hues55

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

convert RGB to DKL
SystemISCCNBS

ISCC-NBS System
XYZ2Lab

convert from XYZ coordinates to CIE Lab coordinates
Yuv2XYZ

convert from Yuv coordinates to XYZ coordinates
conversionLuminance

Conversion Factors for Units of Luminance
chromaticity.diagram

Plot the chromaticity diagram
Luv2Yuv

Convert CIE Luv coordinates to Yuv
XYZtoRGB

convert from XYZ coordinates to RGB
xyY2XYZ

Convert CIE CMF to XYZ
spectra2CRIGAIFSCI

CRI, GAI and FSCI from spectra
MaxChromaFromExtrapRenotationData

Table with maximum chroma for which extrapolated renotation data is available
saturationCIECAM02

saturation CIECAM 2002
PreucilPercentHueError

Preucil Percentage of Greyness
VosEstevezWalraven2degConeFundamentals1990

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

CIELAB saturation (Eva Lubbe)
createIsoTempLinesTable

table of isotemperature lines for use with the Robertson Method
dkl2dklCart

converts between spherical and cartesian coordinates for DKL
ciexyz64

CIE 1964 10-deg, XYZ CMFs
YIQ2RGB

Convert YIQ coordinates to RGB
heuristic.wlnm2RGB

Approximations from wavelengths to RGB
DIN99toCIELab

Conversion from DIN99 coordinates to CIELAB color space