Packages

class ColorCalibrator extends AnyRef

Performs color calibration using a color chart.

The calibration in performed in the specified reference color space. For the best results the reference color space should be similar to the color space of the input image. That is, in optimal conditions function mapping from the actual color space to the reference color space should be close to linear. For instance for raw images the CIE XYZ color space is better reference than sRGB since mapping between the input and the reference can be done with good accuracy using low order polynomial. If the input image is a typical JPEG image it is best to select sRGB as a reference color space.

Linear Supertypes
AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ColorCalibrator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ColorCalibrator(chart: ColorChart, referenceColorSpace: ReferenceColorSpace, mappingMethod: MappingMethod, clipReferenceRGB: Boolean)

    chart

    color chart providing reference color values, location of chips, and the alignment transform to spatially map color chip locations fro the reference to input image.

    referenceColorSpace

    assumption about the color space of the input image. Reference color values will be generated in that color space.

    mappingMethod

    type of polynomial function used to map from input to the reference color space.

    clipReferenceRGB

    if the reference was selected as RGB, the reference color values can be outside the gamut of that color space (lower than 0 or larger than 255). This parameter gives an option to clip reference color value to fit within the gamut.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val chart: ColorChart
  6. val clipReferenceRGB: Boolean
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def computeCalibrationMapping(image: ImagePlus): CalibrationFit

    Estimate calibration coefficients.

    Estimate calibration coefficients. Reference color values will be clipped if reference color space is RGB and clipReferenceRGB is true.

    image

    input image to measure observed color value of chart's chips.

    Exceptions thrown

    java.lang.IllegalArgumentException if one of the calibration mapping functions cannot be computed or if the input image is not RGB or not a three slice stack of gray level images.

  9. def computeCalibrationMapping(image: ColorProcessor): CalibrationFit

    Estimate calibration coefficients.

    Estimate calibration coefficients. Reference color values will be clipped if reference color space is RGB and clipReferenceRGB is true.

    image

    input image to measure observed color value of chart's chips.

    Exceptions thrown

    java.lang.IllegalArgumentException if one of the calibration mapping functions cannot be computed.

  10. def computeCalibrationMapping[T <: ImageProcessor](bands: IndexedSeq[T])(implicit arg0: ClassTag[T]): CalibrationFit

    Estimate calibration coefficient.

    Estimate calibration coefficient. This method does not clip reference color values.

    bands

    input image bands to measure observed color value of chart's chips.

    Exceptions thrown

    java.lang.IllegalArgumentException if one of the calibration mapping functions cannot be computed.

  11. def computeCalibrationMapping(observed: IndexedSeq[IndexedSeq[Double]]): CalibrationFit

    Compute coefficients of a polynomial color mapping between the reference and observed colors.

    Compute coefficients of a polynomial color mapping between the reference and observed colors.

    observed

    Actually observed color values.

    returns

    color mapping coefficients.

    Exceptions thrown

    java.lang.IllegalArgumentException when the reference and observed values are not sufficient to compute mapping polynomial coefficients, for instance, if the desired polynomial order is too high given the number of reference colors.

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. val mappingMethod: MappingMethod
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. val referenceColorSpace: ReferenceColorSpace
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped