Struct CieLuv
- Namespace
- SixLabors.ImageSharp.ColorSpaces
- Assembly
- SixLabors.ImageSharp.dll
The CIE 1976 (L*, u*, v*) color space, commonly known by its abbreviation CIELUV, is a color space adopted by the International Commission on Illumination (CIE) in 1976, as a simple-to-compute transformation of the 1931 CIE XYZ color space, but which attempted perceptual uniformity https://en.wikipedia.org/wiki/CIELUV
public readonly struct CieLuv : IEquatable<CieLuv>
- Implements
- Inherited Members
Constructors
CieLuv(Vector3)
Initializes a new instance of the CieLuv struct.
public CieLuv(Vector3 vector)
Parameters
vectorVector3The vector representing the l, u, v components.
Remarks
Uses DefaultWhitePoint as white point.
CieLuv(Vector3, CieXyz)
Initializes a new instance of the CieLuv struct.
public CieLuv(Vector3 vector, CieXyz whitePoint)
Parameters
vectorVector3The vector representing the l, u, v components.
whitePointCieXyzThe reference white point. Illuminants
CieLuv(float, float, float)
Initializes a new instance of the CieLuv struct.
public CieLuv(float l, float u, float v)
Parameters
lfloatThe lightness dimension.
ufloatThe blue-yellow chromaticity coordinate of the given whitepoint.
vfloatThe red-green chromaticity coordinate of the given whitepoint.
Remarks
Uses DefaultWhitePoint as white point.
CieLuv(float, float, float, CieXyz)
Initializes a new instance of the CieLuv struct.
public CieLuv(float l, float u, float v, CieXyz whitePoint)
Parameters
lfloatThe lightness dimension.
ufloatThe blue-yellow chromaticity coordinate of the given whitepoint.
vfloatThe red-green chromaticity coordinate of the given whitepoint.
whitePointCieXyzThe reference white point. Illuminants
Fields
DefaultWhitePoint
D65 standard illuminant. Used when reference white is not specified explicitly.
public static readonly CieXyz DefaultWhitePoint
Field Value
Properties
L
Gets the lightness dimension
public float L { get; }
Property Value
U
Gets the blue-yellow chromaticity coordinate of the given whitepoint.
public float U { get; }
Property Value
V
Gets the red-green chromaticity coordinate of the given whitepoint.
public float V { get; }
Property Value
WhitePoint
Gets the reference white point of this color
public CieXyz WhitePoint { get; }
Property Value
Methods
Equals(CieLuv)
public bool Equals(CieLuv other)
Parameters
otherCieLuv
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(CieLuv, CieLuv)
Compares two CieLuv objects for equality.
public static bool operator ==(CieLuv left, CieLuv right)
Parameters
leftCieLuvThe CieLuv on the left side of the operand.
rightCieLuvThe CieLuv on the right side of the operand.
Returns
- bool
True if the current left is equal to the
rightparameter; otherwise, false.
operator !=(CieLuv, CieLuv)
Compares two CieLuv objects for inequality.
public static bool operator !=(CieLuv left, CieLuv right)
Parameters
leftCieLuvThe CieLuv on the left side of the operand.
rightCieLuvThe CieLuv on the right side of the operand.
Returns
- bool
True if the current left is unequal to the
rightparameter; otherwise, false.