dkl2dklCart: converts between spherical and cartesian coordinates for DKL

Description Usage Arguments Value Author(s) Source References Examples

View source: R/colorscience.R

Description

dkl2dklCart Converts DKL, from spherical coordinates to cartesian. dklCart2rgb Converts DKL, from cartesian to spherical coordinates.

Usage

1
dkl2dklCart(dklMatrix)

Arguments

dklMatrix

DKL coordinates

Value

DKL coordinates

Author(s)

Jose Gama

Source

Package psychopy for Python

Graph-Based Visual Saliency (MATLAB source code) Jonathan Harel California Institute of Technology

References

Package psychopy for Python

Graph-Based Visual Saliency (MATLAB source code) Jonathan Harel California Institute of Technology

Examples

1
2
3
4
5
RGB<-c(124,63,78)
d <- rgb2dklCart(RGB)
dklCart2dkl(d)
dkl2dklCart(c(1.647176, 60.8308, 91.45825))
d

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, 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

     elevation azimuth   radius
[1,]  1.647176 60.8308 91.45825
        [,1]     [,2]     [,3]
[1,] 79.8269 44.55745 2.628939
        [,1]     [,2]     [,3]
[1,] 79.8269 44.55745 2.628938

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