Class VonKriesChromaticAdaptation
- Namespace
- SixLabors.ImageSharp.ColorProfiles
- Assembly
- SixLabors.ImageSharp.dll
Implementation of the Von Kries chromatic adaptation model.
public static class VonKriesChromaticAdaptation
- Inheritance
-
VonKriesChromaticAdaptation
- Inherited Members
Remarks
Transformation described here: http://www.brucelindbloom.com/index.html?Eqn_ChromAdapt.html
Methods
Transform(in CieXyz, (CieXyz From, CieXyz To), Matrix4x4)
Performs a linear transformation of a source color in to the destination color.
public static CieXyz Transform(in CieXyz source, (CieXyz From, CieXyz To) whitePoints, Matrix4x4 matrix)
Parameters
sourceCieXyzThe source color.
whitePoints(CieXyz From, CieXyz To)The conversion white points.
matrixMatrix4x4The chromatic adaptation matrix.
Returns
Remarks
Doesn't crop the resulting color space coordinates (e.g. allows negative values for XYZ coordinates).
Transform(ReadOnlySpan<CieXyz>, Span<CieXyz>, (CieXyz From, CieXyz To), Matrix4x4)
Performs a bulk linear transformation of a source color in to the destination color.
public static void Transform(ReadOnlySpan<CieXyz> source, Span<CieXyz> destination, (CieXyz From, CieXyz To) whitePoints, Matrix4x4 matrix)
Parameters
sourceReadOnlySpan<CieXyz>The span to the source colors.
destinationSpan<CieXyz>The span to the destination colors.
whitePoints(CieXyz From, CieXyz To)The conversion white points.
matrixMatrix4x4The chromatic adaptation matrix.
Remarks
Doesn't crop the resulting color space coordinates (e. g. allows negative values for XYZ coordinates).