Learn R Programming

colorscience (version 1.0.2)

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

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

Run this code
dklC <- rgb2dklCart(c(54,75,121))
dklCart2dkl(dklC)

Run the code above in your browser using DataLab