public class CIETestColorSample
extends java.lang.Object
Approximate No. Munsell Notation Color appearance under daylight 1 7,5 R 6/4 Light greyish red 2 5 Y 6/4 Dark greyish yellow 3 5 GY 6/8 Strong yellow green 4 2,5 G 6/6 Moderate yellowish green 5 10 BG 6/4 Light bluish green 6 5 PB 6/8 Light blue 7 2,5 P 6/8 Light violet 8 10 P 6/8 Light reddish purple 9 4,5 R 4/13 Strong red 10 5 Y 8/10 Strong yellow 11 4,5 G 5/8 Strong green 12 3 PB 3/11 Strong blue 13 5 YR 8/4 Light yellowish pink (human complexion) 14 5 GY 4/4 Moderate olive green (leaf green)
All 14 colors are loaded from the binary files in: com.oceanoptics.spam.constants.tcs when a spectrum is loaded for measurement so all samples can use the same spectrum to calculate the CRI.
Constructor and Description |
---|
CIETestColorSample()
Creates a new instance of CIETestColorSample
|
Modifier and Type | Method and Description |
---|---|
int |
getSampleNumber()
Returns the sample number of the test color sample.
|
double[] |
getValues()
Returns the calculated reflection spectrum of the test color sample
under the a given spectrum (the user energy spectrum, or an idealized
spectrum).
|
double[] |
getWavelengths()
Returns the wavelengths for which the standard's reflection spectrum is
measured.
|
void |
setValues(int number,
java.lang.String name,
double[] wl,
double[] spectrum)
Sets the values for the given Test Color Sample.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
public CIETestColorSample()
public int getSampleNumber()
public double[] getWavelengths()
public double[] getValues()
public void setValues(int number, java.lang.String name, double[] wl, double[] spectrum)
number
- the index of the test color sample (1-14).name
- a short description of the test color sample.wl
- the wavelengths for which the standard's reflection spectrum is
measured.spectrum
- the calculated reflection spectrum that determines the
color of the standard.public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2004-2006 Ocean Optics, Inc. All Rights Reserved.