colorSpec-package: Package colorSpec - Color Calculations with Emphasis on...

colorSpec-packageR Documentation

Package colorSpec - Color Calculations with Emphasis on Spectral Data

Description

Package colorSpec is for working with spectral color data in R.

Details

Features:

  1. a clear classification of the commonly seen spectra into 4 types - depending on the vector space to which they belong

  2. flexible organization for the spectra in memory, using an S3 class - colorSpec

  3. a product algebra for the colorSpec objects

  4. uniform handling of biological eyes, electronic cameras, and general action spectra

  5. a few advanced calculations, such as computing optimal colors (aka Macadam Limits)

  6. inverse colorimetry, e.g. reflectance recovery from response

  7. built-in essential tables, such as the CIE illuminants and color matching functions

  8. a package logging system with log levels taken from the popular Log4J

  9. support for reading a few spectrum file types, including CGATS

  10. bonus files containing some other interesting spectra

  11. minimal dependencies on other R packages

Non-features:

  1. there is no support for many common 3D color spaces, such as CIELAB, HSL, etc.. For these spaces see packages colorspace, colorscience, spacesRGB, and spacesXYZ.

  2. there are few non-linear operations

  3. there is little support for scientific units; for these see package colorscience

  4. photons are parameterized by wavelength in nanometers; other wavelength units (such as Angstrom and micron) and alternative parameterizations (such as wavenumber and electronvolt) are not available

Regarding the non-linear operations in 2, the only such operations are conversion of linear RGB to display RGB, conversion of absorbance to transmittance, and the reparameterized wavelength in computeADL. The electronic camera model is purely linear with no dark current offset or other deviations.

Many ideas are taken from packages hyperSpec, hsdar, pavo, and zoo.

Author(s)

Glenn Davis <gdavis@gluonics.com>

See Also

colorSpec for the S3 class provided by this package.

colorSpec User Guide


colorSpec documentation built on May 4, 2022, 9:06 a.m.