MyNixOS website logo
Description

Color Calculations with Emphasis on Spectral Data.

Calculate with spectral properties of light sources, materials, cameras, eyes, and scanners. Build complex systems from simpler parts using a spectral product algebra. For light sources, compute CCT, CRI, and SSI. For object colors, compute optimal colors and Logvinenko coordinates. Work with the standard CIE illuminants and color matching functions, and read spectra from text files, including CGATS files. Estimate a spectrum from its response. A user guide and 9 vignettes are included.

colorSpec

colorSpec is an R package providing an S3 class with methods for color spectra. It supports the standard calculations with spectral properties of light sources, materials, cameras, eyes, scanners, etc. And it works well with the more general action spectra.

When a spectrum is contructed, a quantity is required, though it can be changed after contruction. The colorSpec quantities are typically not the same as the SI quantities; they are more general. There are 14 quantities, which then defined the 4 basic spectrum types, as given in this table from the User Guide.

colorSpec
type

quantity

metric

comments

examples
(objects, files, functions)

light

energy

radiometric

radiometric quantities are conventional in colorimetry

D65.1nm
pos1-20x.scope
BlueFlame.txt

photons

actinometric

for color calculations, actinometric units are automatically converted to radiometric

F96T12
Airam-GR8E.txt

responsivity
.light

energy->electrical

radiometric

RGB camera response

Flea2.RGB
Red-Epic-Dragon.txt

energy->neural

eye response

xyz1931.1nm
luminsivity.1nm
Osmia-rufa.txt

energy->action

examples are erythemal action, melatonin suppression, etc.

erythemalSpectrum()

photons->electrical

actinometric

silicon sensors usually use quantum efficiency as measure of responsivity

Zyla_sCMOS.txt
FoveonX3.txt

photons->neural

response units might be photocurrent, or spikes/sec, etc.

HigherPasserines

photons->action

photosynthesis is an example

BeanPhotosynthesis.txt

material

reflectance

NA

this is the diffuse reflectance

CC_Avg20_spectrum_XYY.txt

transmittance
absorbance

NA

for color calculations, absorbance is automatically converted to transmittance

Hoya
Hematoxylin.txt
atmosphere2003

responsivity
.material

material->electrical
material->neural
material->action

NA

a spectrum of this type typically comes from both a light source and a camera

scanner.ACES
(a standard for scanning film)

Table 2.1. The typesof spectra and their quantities



The quantity is used to label plots, and to make sense out of the arguments in the function product().



The function invert() implements a method in

Davis G (2019). “A Centroid for Sections of a Cube in a Function Space, with application to Colorimetry.” ArXiv e-prints. 1811.00990, https://arxiv.org/abs/1811.00990.

Metadata

Version

1.5-0

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows