final class ColorConverter extends AnyRef
Color converter based on information given at brucelindbloom.com.
Conversion between CIE XYZ and sRGB is defined in the IEC 619602-1 standard http://www.colour.org/tc8-05/Docs/colorspace/61966-2-1.pdf, though it uses approximated coefficients (compared to Lindbloom).
Conversion between CIE XYZ and reference white points are defined in NIST E308 standard.
- Alphabetic
- By Inheritance
- ColorConverter
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ColorConverter(refWhite: ReferenceWhite = ReferenceWhite.D65, rgbSpace: RGBWorkingSpace = RGBWorkingSpace.sRGB, chromaticAdaptation: Option[ChromaticAdaptation] = Some(ChromaticAdaptation.Bradford), rgbScale: Double = 255, xyzScale: Double = 100)
- refWhite
reference white for CIE XYZ color space.
- rgbSpace
RGB working space (may have different reference white).
- chromaticAdaptation
chromatic adaptation used for conversions from/to RGB.
- rgbScale
scale used for RGB values, for instance, if scale is 255 the range of RGB values will be between 0 and 255.
- xyzScale
scale used for CIE XYZ values, for instance, if scale is 100 the range of CIE XYZ values will be between 0 and 100.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val chromaticAdaptation: Option[ChromaticAdaptation]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def copyWith(refWhite: ReferenceWhite = refWhite, rgbSpace: RGBWorkingSpace = rgbSpace, chromaticAdaptation: Option[ChromaticAdaptation] = chromaticAdaptation, rgbScale: Double = rgbScale, xyzScale: Double = xyzScale): ColorConverter
Create copy of this object with a modified field.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def labToXYZ(l: Double, a: Double, b: Double): XYZ
Convert color from CIE L*a*b* to CIE XYZ color space.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val refWhite: ReferenceWhite
- val rgbScale: Double
- val rgbSpace: RGBWorkingSpace
- def rgbToXYZ(r: Double, g: Double, b: Double): XYZ
Convert RGB to CIE XYZ color space.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLab(xyz: XYZ): Lab
Convert CIE XYZ to CIE L*a*b* color space.
Convert CIE XYZ to CIE L*a*b* color space.
- Annotations
- @inline()
- def toLab(rgb: RGB): Lab
Convert color from RGB to CIE L*a*b* color space.
Convert color from RGB to CIE L*a*b* color space.
- Annotations
- @inline()
- def toRGB(xyz: XYZ): RGB
Convert CIE XYZ to an RGB color space.
Convert CIE XYZ to an RGB color space.
- Annotations
- @inline()
- def toRGB(lab: Lab): RGB
Convert color from CIE L*a*b* to RGB color space.
Convert color from CIE L*a*b* to RGB color space.
- Annotations
- @inline()
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toXYZ(rgb: RGB): XYZ
Convert RGB to CIE XYZ color space.
Convert RGB to CIE XYZ color space.
- Annotations
- @inline()
- def toXYZ(lab: Lab): XYZ
Convert color from CIE L*a*b* to CIE XYZ color space.
Convert color from CIE L*a*b* to CIE XYZ color space.
- Annotations
- @inline()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- val xyzScale: Double
- def xyzToLab(x: Double, y: Double, z: Double): Lab
Convert CIE XYZ to CIE L*a*b* color space.
- def xyzToRGB(x: Double, y: Double, z: Double): RGB
Convert CIE XYZ to an RGB color space.
Operations on color spaces and color images, including color calibration.
ij_plugins.color
is the root package for the project.Package
ij_plugins.color.calibration
contains color calibration.Package
ij_plugins.color.converter
contains conversions between color spaces.