euclidean: Euclidean colour metrics

Description Usage Arguments Details Value Author(s)

Description

Colour metrics that calculate euclidean distance between colours in different colour spaces.

Usage

1
2
3
euclideanLUV(colour, colourList, tolerance = Inf)
euclideanRGB(colour, colourList, tolerance = Inf)
euclideanDistance(spec, list, tolerance) 

Arguments

colour

An "sRGB" colour object representing colours to find a match for.

colourList

An "sRGB" colour object representing a list of colours to find a match within.

tolerance

A numeric value indicating a range beyond which matches will not be accepted.

spec

A single colour specification, as an RGB vector of three values.

list

A list of colours, as an RGB matrix with three columns.

Details

euclideanLUV() calculates euclidean distance in the CIE Luv colour space.

euclideanRGB() calculates euclidean distance in the sRGB colour space.

euclideanDistance() is provided as a helper for defining euclidean metrics in other colour spaces.

Value

The colour metrics return a matrix of distances, with one row per colour specification and one column per colour name.

Author(s)

Paul Murrell


roloc documentation built on May 1, 2019, 7:06 p.m.