euclideanLUV {roloc} | R Documentation |
Euclidean colour metrics
Description
Colour metrics that calculate euclidean distance between colours in different colour spaces.
Usage
euclideanLUV(colour, colourList, tolerance = Inf)
euclideanRGB(colour, colourList, tolerance = Inf)
euclideanDistance(spec, list, tolerance)
Arguments
colour |
An |
colourList |
An |
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