Enum StandardIlluminant

java.lang.Object
java.lang.Enum<StandardIlluminant>
imagingbook.common.color.cie.StandardIlluminant
All Implemented Interfaces:
Illuminant, Serializable, Comparable<StandardIlluminant>, java.lang.constant.Constable

public enum StandardIlluminant extends Enum<StandardIlluminant> implements Illuminant

Enumeration of selected standard illuminants. See Sec. 14.1.3 of [1] for details.

[1] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer (2022).

  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Incandescent tungsten (2856K).
    Obsolete, direct sunlight at noon (4874K).
    Obsolete, north sky daylight (6774K).
    D50 standard illuminant (5000K).
    D55 standard illuminant (5500K).
    D65 standard illuminant used for television and sRGB color space (6500K).
    D75 standard illuminant (7500K).
    Narrow Band White Fluorescent (4000K).
    Cool White Fluorescent CWF (4200K).
    Broad-Band Daylight Fluorescent (6500K).
    Equal energy illuminant, neutral point (5400K).
  • Method Summary

    Modifier and Type
    Method
    Description
    double[]
    Returns the illuminant's 2D coordinate in 2D CIE-xy space.
    double[]
    Returns the illuminant's 3D coordinate in CIE-XYZ color space.
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static StandardIlluminant[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static StandardIlluminant valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getXYZ

      public double[] getXYZ()
      Description copied from interface: Illuminant
      Returns the illuminant's 3D coordinate in CIE-XYZ color space.
      Specified by:
      getXYZ in interface Illuminant
      Returns:
      the XYZ-coordinate
    • getXy

      public double[] getXy()
      Description copied from interface: Illuminant
      Returns the illuminant's 2D coordinate in 2D CIE-xy space.
      Specified by:
      getXy in interface Illuminant
      Returns:
      the xy-coordinate