dkl2rgb: convert RGB to DKL

Description Usage Arguments Value Author(s) Source References Examples

View source: R/colorscience.R

Description

dkl2rgb Converts DKL, spherical coords coordinates to sRGB. dklCart2rgb Converts DKL, cartesian coords coordinates to sRGB.

Usage

1
dkl2rgb(dklMatrix, conversionMatrix = NA)

Arguments

dklMatrix

DKL coordinates

conversionMatrix

conversion matrix

Value

RGB 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
dklC <- rgb2dklCart(c(54,75,121))
dklCart2dkl(dklC)

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

     elevation  azimuth   radius
[1,] -30.82813 110.1006 92.11625

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