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
vector
Vector3The 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
vector
Vector3The vector representing the l, u, v components.
whitePoint
CieXyzThe 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
l
floatThe lightness dimension.
u
floatThe blue-yellow chromaticity coordinate of the given whitepoint.
v
floatThe 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
l
floatThe lightness dimension.
u
floatThe blue-yellow chromaticity coordinate of the given whitepoint.
v
floatThe red-green chromaticity coordinate of the given whitepoint.
whitePoint
CieXyzThe 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
other
CieLuv
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
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
left
CieLuvThe CieLuv on the left side of the operand.
right
CieLuvThe CieLuv on the right side of the operand.
Returns
- bool
True if the current left is equal to the
right
parameter; otherwise, false.
operator !=(CieLuv, CieLuv)
Compares two CieLuv objects for inequality.
public static bool operator !=(CieLuv left, CieLuv right)
Parameters
left
CieLuvThe CieLuv on the left side of the operand.
right
CieLuvThe CieLuv on the right side of the operand.
Returns
- bool
True if the current left is unequal to the
right
parameter; otherwise, false.