Struct CieLuv
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
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.ColorSpaces
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct CieLuv : IEquatable<CieLuv>Constructors
| Improve this Doc View SourceCieLuv(Vector3)
Initializes a new instance of the CieLuv struct.
Declaration
public CieLuv(Vector3 vector)Parameters
| Type | Name | Description | 
|---|---|---|
| Vector3 | vector | The vector representing the l, u, v components. | 
Remarks
Uses DefaultWhitePoint as white point.
CieLuv(Vector3, CieXyz)
Initializes a new instance of the CieLuv struct.
Declaration
public CieLuv(Vector3 vector, CieXyz whitePoint)Parameters
| Type | Name | Description | 
|---|---|---|
| Vector3 | vector | The vector representing the l, u, v components. | 
| CieXyz | whitePoint | The reference white point. Illuminants | 
CieLuv(Single, Single, Single)
Initializes a new instance of the CieLuv struct.
Declaration
public CieLuv(float l, float u, float v)Parameters
| Type | Name | Description | 
|---|---|---|
| Single | l | The lightness dimension. | 
| Single | u | The blue-yellow chromaticity coordinate of the given whitepoint. | 
| Single | v | The red-green chromaticity coordinate of the given whitepoint. | 
Remarks
Uses DefaultWhitePoint as white point.
CieLuv(Single, Single, Single, CieXyz)
Initializes a new instance of the CieLuv struct.
Declaration
public CieLuv(float l, float u, float v, CieXyz whitePoint)Parameters
| Type | Name | Description | 
|---|---|---|
| Single | l | The lightness dimension. | 
| Single | u | The blue-yellow chromaticity coordinate of the given whitepoint. | 
| Single | v | The red-green chromaticity coordinate of the given whitepoint. | 
| CieXyz | whitePoint | The reference white point. Illuminants | 
Fields
| Improve this Doc View SourceDefaultWhitePoint
D65 standard illuminant. Used when reference white is not specified explicitly.
Declaration
public static readonly CieXyz DefaultWhitePointField Value
| Type | Description | 
|---|---|
| CieXyz | 
L
Gets the lightness dimension
Declaration
public readonly float LField Value
| Type | Description | 
|---|---|
| Single | 
U
Gets the blue-yellow chromaticity coordinate of the given whitepoint.
Declaration
public readonly float UField Value
| Type | Description | 
|---|---|
| Single | 
V
Gets the red-green chromaticity coordinate of the given whitepoint.
Declaration
public readonly float VField Value
| Type | Description | 
|---|---|
| Single | 
WhitePoint
Gets the reference white point of this color
Declaration
public readonly CieXyz WhitePointField Value
| Type | Description | 
|---|---|
| CieXyz | 
Methods
| Improve this Doc View SourceEquals(CieLuv)
Declaration
public readonly bool Equals(CieLuv other)Parameters
| Type | Name | Description | 
|---|---|---|
| CieLuv | other | 
Returns
| Type | Description | 
|---|---|
| Boolean | 
Equals(Object)
Declaration
public override readonly bool Equals(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| Object | obj | 
Returns
| Type | Description | 
|---|---|
| Boolean | 
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()Returns
| Type | Description | 
|---|---|
| Int32 | 
Overrides
| Improve this Doc View SourceToString()
Declaration
public override readonly string ToString()Returns
| Type | Description | 
|---|---|
| String | 
Overrides
Operators
| Improve this Doc View SourceEquality(CieLuv, CieLuv)
Compares two CieLuv objects for equality.
Declaration
public static bool operator ==(CieLuv left, CieLuv right)Parameters
| Type | Name | Description | 
|---|---|---|
| CieLuv | left | The CieLuv on the left side of the operand. | 
| CieLuv | right | The CieLuv on the right side of the operand. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True if the current left is equal to the  | 
Inequality(CieLuv, CieLuv)
Compares two CieLuv objects for inequality.
Declaration
public static bool operator !=(CieLuv left, CieLuv right)Parameters
| Type | Name | Description | 
|---|---|---|
| CieLuv | left | The CieLuv on the left side of the operand. | 
| CieLuv | right | The CieLuv on the right side of the operand. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True if the current left is unequal to the  |