rgb2dklV: convert RGB to DKL

Description Usage Arguments Value Author(s) Source References Examples

View source: R/colorscience.R

Description

rgb2dklV Converts sRGB coordinates to DKL, spherical coords, sames as Graph-Based Visual Saliency. rgb2dklCart Converts sRGB coordinates to DKL, cartesian coords.

Usage

1
rgb2dklV(RGB)

Arguments

RGB

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

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,] 74.28302 -27.18458 -47.20631

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