dispace: Dichromatic colour space

View source: R/dispace.R

dispaceR Documentation

Dichromatic colour space

Description

Calculates coordinates and colorimetric variables that represent reflectance spectra in a dichromatic colour space.

Usage

dispace(vismodeldata)

Arguments

vismodeldata

(required) quantum catch color data. Can be either the result from vismodel() or independently calculated data (in the form of a data frame with two columns named 's' and 'l', representing a dichromatic viewer's receptors).

Value

A data frame of class colspace consisting of the following columns:

  • s, l: the quantum catch data used to calculate the remaining variables.

  • x: the coordinate of the stimulus along a segment

  • r.vec: the r vector (saturation, distance from the center).

Author(s)

Thomas White thomas.white026@gmail.com

References

Kelber A, Vorobyev M, Osorio D. (2003). Animal colour vision - behavioural tests and physiological concepts. Biological Reviews, 78, 81 - 118.

Examples

data(flowers)
vis.flowers <- vismodel(flowers, visual = "canis")
di.flowers <- colspace(vis.flowers, space = "di")

pavo documentation built on Sept. 24, 2023, 5:06 p.m.