public class uvwPrime extends ColorSpaceDescriptor
Constructor and Description |
---|
uvwPrime(CIEColor color)
Creates a new instance of uvwPrime.
|
Modifier and Type | Method and Description |
---|---|
double |
get_uPrime()
Returns u' from the CIE 1976 UCS diagram.
|
double |
get_vPrime()
Returns v' from the CIE 1976 UCS diagram.
|
double |
get_wPrime()
Returns w' from the CIE 1976 UCS diagram. w' is computed as:
w' = 1 - u' - v'.
|
static ColorSpaceValue[] |
getColorSpaceValues()
Returns an array of ColorSpaceValue objects, each of which can be
displayed in a widget (e.g.
|
double |
getHue()
Returns the CIE 1976 u,v hue-angle.
|
double |
getSaturation()
Returns the CIE 1976 u,v saturation.
|
getAllColorSpaceDescriptors
public uvwPrime(CIEColor color) throws ColorConversionException
color
- the CIEColor object holding the tristimulus values to create
the uwPrime color space.ColorConversionException
- if a problem occurs while attempting to convert from one color space to
another.public double get_uPrime()
public double get_vPrime()
public double get_wPrime()
w' = 1 - u' - v'.
public double getHue()
h_uv = arctan[(v' - v'_n) / (u' - u'_n)]
Source: "Measuring Color" by R.W.G. Hunt, 3rd edition, page 62, and CIE 15.2 1986 page 30.
public double getSaturation()
s_uv = 13[(u' - u'_n)² + (v' - v'_n)²)]½
Source: "Measuring Color" by R.W.G. Hunt, 3rd edition, page 62, and CIE 15.2 1986 page 29.
public static ColorSpaceValue[] getColorSpaceValues()
NOTE: do not change the name of this method without checking thoroughly for references to it. Other code will need to find this method by name at run-time given only a Class, so simple refactoring won't catch all references.
Copyright 2004-2006 Ocean Optics, Inc. All Rights Reserved.