Learn R Programming

colorscience (version 1.0.8)

dkl2rgb: convert RGB to DKL

Description

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

Usage

dkl2rgb(dklMatrix, conversionMatrix = NA)

Arguments

dklMatrix

DKL coordinates

conversionMatrix

conversion matrix

Value

RGB coordinates

References

Package psychopy for Python

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

Examples

Run this code
# NOT RUN {
dklC <- rgb2dklCart(c(54,75,121))
dklCart2dkl(dklC)
# }

Run the code above in your browser using DataLab