XYZ2LMS: Convert XYZ coordinates to LMS

Description Usage Arguments Value Author(s) Source References Examples

View source: R/colorscience.R

Description

XYZ2LMS Converts XYZ coordinates to LMS.

Usage

1
XYZ2LMS(XYZmatrix) 

Arguments

XYZmatrix

XYZ coordinates

Value

LMS coordinates

Author(s)

Jose Gama

Source

Francoise Vienot, Hans Brettel,John D. Mollon, 1999 Digital Video Colourmaps for Checking the Legibility of Displays by Dichromats Color Research & Application John Wiley & Sons, Inc.

References

Francoise Vienot, Hans Brettel,John D. Mollon, 1999 Digital Video Colourmaps for Checking the Legibility of Displays by Dichromats Color Research & Application John Wiley & Sons, Inc.

Examples

1
2
XYZ<-c(21.43162, -3.20673, 120.6259)
XYZ2LMS(XYZ)

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

         [,1]     [,2]     [,3]
[1,] 3.822394 10.17498 1.130048

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