LMS2DKL: Convert LMS coordinates to DKL

Description Usage Arguments Value Author(s) Source References Examples

View source: R/colorscience.R

Description

LMS2DKL Converts LMS coordinates to DKL.

Usage

1
LMS2DKL(bg, diffcone.coords, DKL2LMS = FALSE) 

Arguments

bg

LMS coordinates

diffcone.coords

LMS coordinates

DKL2LMS

boolean, FALSE = DKL to LMS, TRUE = LMS to DKL

Value

DKL coordinates

Author(s)

Jose Gama

Source

David H. Brainard Cone Contrast and Opponent Modulation Color Spaces pp. 563 PART IV: CONE CONTRAST AND OPPONENT MODULATION COLOR SPACES

References

David H. Brainard Cone Contrast and Opponent Modulation Color Spaces pp. 563 PART IV: CONE CONTRAST AND OPPONENT MODULATION COLOR SPACES

Examples

1
2
#LMS<-c(3.822394, 10.17498, 1.130049)
#LMS2DKL(LMS)

Example output

Loading required package: Hmisc
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2

Attaching package: 'Hmisc'

The following objects are masked from 'package:base':

    format.pval, round.POSIXt, trunc.POSIXt, units

Loading required package: munsellinterpol
Loading required package: geometry
Loading required package: magic
Loading required package: abind
Loading required package: pracma

Attaching package: 'pracma'

The following object is masked from 'package:munsellinterpol':

    hypot

The following objects are masked from 'package:geometry':

    dot, polyarea

The following object is masked from 'package:magic':

    magic

The following object is masked from 'package:Hmisc':

    ceil

Loading required package: sp

Attaching package: 'colorscience'

The following objects are masked from 'package:munsellinterpol':

    XYZ2xyY, xyY2XYZ

colorscience documentation built on Oct. 30, 2019, 9:33 a.m.