Learn R Programming

colorscience

WARNING

This package will someday be removed.
I have long thought that it is too big and has some unimportant functions, so I have been copying the important parts to these packages:

while improving functionality and documentation. I also added vignettes and tests.

Whenever possible, please use these packages instead.
If there is a feature in colorscience that you cannot find in one of these 4 packages, please let me know.

Copy Link

Version

Install

install.packages('colorscience')

Monthly Downloads

801

Version

1.0.8

License

GPL (>= 3)

Maintainer

Last Published

October 29th, 2019

Functions in colorscience (1.0.8)

CIE1976uvSaturation

CIE 1976 uv Saturation
CIE1960UCS2xy

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

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

Central notations for the revised ISCC-NBS
CMYK2CMY

Convert CMYK coordinates to CMY
CIELabtoDIN99

Conversion from CIELAB color space to DIN99 coordinates
HunterLab2XYZ

Convert HunterLab coordinates to XYZ
Hunter60.WhitenessIndex

Hunter 60 Whiteness Index
CIE1931xy2CIE1960uv

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

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

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

Convert LSLM coordinates to RGB
LUV2LAB

Convert CIE Luv coordinates to CIE Lab
Maxwell.triangle

Plot the Maxwell triangle
MunsellSpectral

Table with Munsell spectral data
Munsell100hues55

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

Convert LEF coordinates to RGB
GanzGrieser.Whiteness

Ganz and Grieser Whiteness
HSL2RGB

Convert HSL coordinates to RGB
LMS2DKL

Convert LMS coordinates to DKL
CIE1976uv2CIE1960uv

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

Munsell value to CIE XYZ "Y"
Munsell100hues55FM100

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

CIE 1976 chroma formula for CIELab and CIELuv
CIE1976hueangle

CIE 1976 hue angle formula for CIELab and CIELuv
RGB2CMY

Convert sRGB coordinates to CMY
ColorBlockFromMunsell

Get HVC, ISCC-NBS Number and ISCC-NBS Name from Munsell notation
HSV2RGB

Convert HSV coordinates to RGB
CIETint

Tint indices: CIE Tint and ASTM E313 Tint
CIEluminanceY2NCSblackness

approximated NCS blackness s by the CIE luminance factor Y
Hue.2.RGB

Convert Hue to RGB
DIN6167.YellownessIndex

CIE Whiteness
LMS2RGB

Convert LMS coordinates to RGB
LMS2XYZ

Convert LMS coordinates to XYZ
LCHuv2Luv

Convert LCHuv coordinates to CIE Luv
ASTM.E313.Whiteness

ASTM E313 Whiteness
CMY2RGB

Convert CMYK coordinates to RGB
LCHab2Lab

Convert LCHab coordinates to CIE Lab
CMY2CMYK

Convert CMY coordinates to CMYK
Luv2LCHuv

Convert CIE Luv coordinates to LCHuv
PhotoYCC2RGB

Convert PhotoYCC to RGB
Luv2XYZ

Convert CIE Luv coordinates to XYZ
MaxChromaFromExtrapRenotationData

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

Check that the color block number is correct
MaxChromasForStandardMunsellHuesAndValues

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

Table with Munsell Hues
RGB2HSL

Convert RGB coordinates to HSL
MaterialReferenceData

Material Reference Data from Principles of Digital Image Synthesis
Luv2Yuv

Convert CIE Luv coordinates to Yuv
DeMarcoPokornySmith2degConeFundamentals1992

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

Conversion from DIN99 coordinates to CIELAB color space
RGB2HSV

Convert RGB coordinates to HSV
MunsellV2relativeLuminanceY

Munsell value V to relative luminance Y
NickersonColorDifference

Nickerson Color Difference
RxRyRz2XYZ

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

Convert sRGB coordinates to hue
StockmanMacLeodJohnson2degCIEadjConeFundamentals1993

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

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

Convert RGB coordinates to LMS
StockmanSharpe10degCMFS2000

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

Convert RGB coordinates to LSLM
XYZ2Lab

convert from XYZ coordinates to CIE Lab coordinates
ChromaticAdaptation

Chromatic adaptation algorithms
XYZ2Yuv

convert from XYZ coordinates to Yuv coordinates
XYZMoonSpencer1945

Approximations from wavelengths to XYZ by Moon & Spencer
StockmanMacLeodJohnson2degStilesBurchConeFundamentals1993

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

convert from XYZ coordinates to xyY coordinates
XYZTannenbaum1974

Approximations from wavelengths to XYZ by Tannenbaum 1974
Yuv2xy

convert from Yuv coordinates to xy coordinates
XYZ2Luv

convert from XYZ coordinates to CIE Luv coordinates
RGB2PhotoYCC

Convert RGB coordinates to PhotoYCC
PreucilAngle

Preucil Angle
Y2MunsellVtable1D1535

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

CIE XYZ "Y" to Munsell value
RGB2LEF

Convert RGB coordinates to LEF
SmithPokorny2degConeFundamentals1975

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

Stearns and Stearns correction
RGB2XYZ

Convert sRGB coordinates to XYZ
SystemISCCNBS

ISCC-NBS System
chromaticity.diagram.color

Plot the chromaticity diagram line with color
ciexyz31

CIE 1931 2-deg, XYZ CMFs
Stensby68.Whiteness

Stensby Whiteness
YPbPr2RGB

Convert YCbCr coordinates to RGB
StockmanMacLeodJohnson10degConeFundamentals1993

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

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

Delta E (CIE 1976)
footcandle2watt.sqcentimeter

converts foot candle to watts / square centimeter
daylightcomponents

daylight components
heuristic.wlnm2RGB

Approximations from wavelengths to RGB
Yxy2CIE1960UCS

convert from Yxy coordinates to CIE 1960 UCS
DominantWavelength

Converts xyY coordinates to wavelength
XYZ2RGB

convert from XYZ coordinates to CIE RGB coordinates
YUV2RGB

Convert YUV coordinates to RGB
RGB2YCbCr

Convert RGB coordinates to YCbCr
XYZperfectreflectingdiffuser

Perfect reflecting diffuser data
XYZ2RxRyRz

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

convert from XYZ coordinates to RGB
Yxy2Yuv

convert from Yxy coordinates to Yuv coordinates
compuphaseDifferenceRGB

compuphase Difference RGB
conversionIlluminance

Conversion Factors for Units of Illuminance
huedegree

convert Munsell hue to degree
huedegreemunsell

Table with Munsell hue degrees
illuminants

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

convert from Yuv coordinates to XYZ coordinates
Yuv2Luv

Convert Yuv coordinates to Luv
RGB2YIQ

Convert RGB coordinates to YIQ
GanzGrieser.Tint

Ganz and Grieser Tint
WestlandBlacknessIndex

Westland, et al. blackness index
VosWalraven2degConeFundamentals1971

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

Weighting factors for the calculation of ISO brightness
XYZ2HunterLab

convert from XYZ coordinates to Hunter Lab coordinates
Adjust

Internal colorscience functions
ciexyz64

CIE 1964 10-deg, XYZ CMFs
saturationCIECAM02

saturation CIECAM 2002
saturationCIELABEvaLubbe

CIELAB saturation (Eva Lubbe)
kelvin2xy

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

Convert CIE Lab coordinates to LCHab
Lab2XYZ

Convert CIE Lab coordinates to XYZ
LAB2LUV

Convert CIE Lab coordinates to CIE Luv
MunsellNeutrals2sRGB

Table with Munsell Neutrals and corresponding sRGB
XYZ2LMS

Convert XYZ coordinates to LMS
MunsellSpecToHVC

convert Munsell notation to numeric HVC
dkl2rgb

convert RGB to DKL
spectra2XYZ

convert spectral data to tristimulus values
PreucilPercentHueError

Preucil Percentage of Greyness
PreucilPercentGreyness

Preucil Percentage of Greyness
deltaECMC

Delta E CMC
cccie31

CIE (1931) 2-deg chromaticity coordinates
dkl2dklCart

converts between spherical and cartesian coordinates for DKL
makeChromaticAdaptationMatrix

Generate a Chromatic Adaptation matrix
sprague

Interpolates an n by w matrix of spectra, sprague
rgb2dklV

convert RGB to DKL
tristimulusMunsell

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

Conversion Factors for Units of Luminance
createIsoTempLinesTable

table of isotemperature lines for use with the Robertson Method
spectra2lux

Illuminance (Lux) from spectra
spectra2CRIGAIFSCI

CRI, GAI and FSCI from spectra
emittanceblackbodyPlanck

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

White points of standard illuminants
illuminantD65

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

Primaries for RGB color spaces
illuminantA

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

Diffuse blue reflectance factor (ISO brightness)
xy2CCT.McCamy

convert from chromaticity coordinates to correlated color temperature
xy2CCT.HernandezAndres

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

Taube Whiteness
RGB2YUV

Convert RGB coordinates to YUV
RGB2YPbPr

Convert RGB coordinates to YPbPr
XYZ2BVR

convert from XYZ coordinates to BVR
XYZ2CCT.Robertson

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

Vos, Est<U+00E9>vez & Walraven (1990) 2-deg cone fundamentals
YCbCr2RGB

Convert YCbCr coordinates to RGB
YIQ2RGB

Convert YIQ coordinates to RGB
cccie64

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

Plot the chromaticity diagram
deltaE2000

Delta E (CIE 2000)
deltaE1994

Delta E (CIE 1994)
footcandle2candela.steradian.sqmeter

converts foot candle to candela steradian / square meter
footcandle2lux

convert foot candle to Lumens/lux
saturationCIELUV

CIELUV/CIELAB saturation
spectra2CCT

Correlated Color Temperature (CCT) from spectra
wlnm2XYZ

Approximates wavelength to CIE tristimulus XYZ
xFit_1931

Approximations from wavelengths to XYZ by Wyman et al
xyChromaticitiesVos1978

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

Convert CIE CMF to XYZ
BVR2XYZ

convert from BVR coordinates to XYZ temperature (Robertson)
CIE1931XYZ2CIE1931xyz

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

Convert CCT to XYZ
Berger59.Whiteness

Berger (59) Whiteness
CIE1931XYZ2CIE1960uv

Convert CIE 1931 XYZ color space to CIE 1960 uv color space
ASTM.E313.YellownessIndex

ASTM E313 Yellowness
CIE.Whiteness

CIE Whiteness
ASTM.D1925.YellownessIndex

ASTM D 1925 Yellowness Index for Plastics
CIE1931XYZ2CIE1976uv

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