Class VonKriesChromaticAdaptation
Implementation of the von Kries chromatic adaptation model.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.ColorSpaces.Conversion
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class VonKriesChromaticAdaptation : IChromaticAdaptation
Remarks
Transformation described here: http://www.brucelindbloom.com/index.html?Eqn_ChromAdapt.html
Constructors
| Improve this Doc View SourceVonKriesChromaticAdaptation()
Initializes a new instance of the VonKriesChromaticAdaptation class.
Declaration
public VonKriesChromaticAdaptation()
VonKriesChromaticAdaptation(Matrix4x4)
Initializes a new instance of the VonKriesChromaticAdaptation class.
Declaration
public VonKriesChromaticAdaptation(Matrix4x4 transformationMatrix)
Parameters
Type | Name | Description |
---|---|---|
Matrix4x4 | transformationMatrix | The transformation matrix used for the conversion (definition of the cone response domain). LmsAdaptationMatrix |
Methods
| Improve this Doc View SourceTransform(in CieXyz, in CieXyz, in CieXyz)
Performs a linear transformation of a source color in to the destination color.
Declaration
public CieXyz Transform(in CieXyz source, in CieXyz sourceWhitePoint, in CieXyz destinationWhitePoint)
Parameters
Type | Name | Description |
---|---|---|
CieXyz | source | The source color. |
CieXyz | sourceWhitePoint | The source white point. |
CieXyz | destinationWhitePoint | The destination white point. |
Returns
Type | Description |
---|---|
CieXyz | The CieXyz |
Remarks
Doesn't crop the resulting color space coordinates (e. g. allows negative values for XYZ coordinates).
Transform(ReadOnlySpan<CieXyz>, Span<CieXyz>, CieXyz, in CieXyz)
Performs a bulk linear transformation of a source color in to the destination color.
Declaration
public void Transform(ReadOnlySpan<CieXyz> source, Span<CieXyz> destination, CieXyz sourceWhitePoint, in CieXyz destinationWhitePoint)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<CieXyz> | source | The span to the source colors. |
Span<CieXyz> | destination | The span to the destination colors. |
CieXyz | sourceWhitePoint | The source white point. |
CieXyz | destinationWhitePoint | The destination white point. |
Remarks
Doesn't crop the resulting color space coordinates (e. g. allows negative values for XYZ coordinates).