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.
- Alphabetic
- By Inheritance
- ColorCalibrator
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
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 chart: ColorChart
- val clipReferenceRGB: Boolean
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
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.
-
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.
-
def
computeCalibrationMapping[T <: ImageProcessor](bands: Array[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.
-
def
computeCalibrationMapping(observed: Array[Array[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.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val mappingMethod: MappingMethod
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val referenceColorSpace: ReferenceColorSpace
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated
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.