public class DominantWavelengthPurity extends ColorSpaceDescriptor
If the dominant wavelength projects into the purple, then the complementary wavelength is reported instead, as per the CIE.
This generates the 81-point path around the CIE x,y chromaticity diagram based on the observer in the CIEColor sample, and uses the sample's illuminantas the white point.
Constructor and Description |
---|
DominantWavelengthPurity(CIEColor color)
Creates a new instance of DominantWavelengthPurity.
|
Modifier and Type | Method and Description |
---|---|
static ColorSpaceValue[] |
getColorSpaceValues()
Returns an array of ColorSpaceValue objects, each of which can be
displayed in a widget (e.g.
|
double |
getDominantWavelength()
Returns the dominant wavelength.
|
java.awt.geom.Point2D |
getIntersection()
Returns the point in (x, y) of the dominant or complementary wavelength.
|
double |
getPurity()
Returns the excitation purity.
|
getAllColorSpaceDescriptors
public DominantWavelengthPurity(CIEColor color) throws ColorConversionException
color
- the CIEColor color to calculate the dominant wavelength and
purity.ColorConversionException
- if a problem occurs while attempting to convert from one color space to
another.public double getDominantWavelength()
public double getPurity()
public java.awt.geom.Point2D getIntersection()
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.