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
| Edit this page 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(float, float, float)
Initializes a new instance of the CieLuv struct.
Declaration
public CieLuv(float l, float u, float v)
Parameters
Type | Name | Description |
---|---|---|
float | l | The lightness dimension. |
float | u | The blue-yellow chromaticity coordinate of the given whitepoint. |
float | v | The 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.
Declaration
public CieLuv(float l, float u, float v, CieXyz whitePoint)
Parameters
Type | Name | Description |
---|---|---|
float | l | The lightness dimension. |
float | u | The blue-yellow chromaticity coordinate of the given whitepoint. |
float | v | The red-green chromaticity coordinate of the given whitepoint. |
CieXyz | whitePoint | The reference white point. Illuminants |
Fields
| Edit this page View SourceDefaultWhitePoint
D65 standard illuminant. Used when reference white is not specified explicitly.
Declaration
public static readonly CieXyz DefaultWhitePoint
Field Value
Type | Description |
---|---|
CieXyz |
Properties
| Edit this page View SourceL
Gets the lightness dimension
Declaration
public float L { get; }
Property Value
Type | Description |
---|---|
float |
U
Gets the blue-yellow chromaticity coordinate of the given whitepoint.
Declaration
public float U { get; }
Property Value
Type | Description |
---|---|
float |
V
Gets the red-green chromaticity coordinate of the given whitepoint.
Declaration
public float V { get; }
Property Value
Type | Description |
---|---|
float |
WhitePoint
Gets the reference white point of this color
Declaration
public CieXyz WhitePoint { get; }
Property Value
Type | Description |
---|---|
CieXyz |
Methods
| Edit this page View SourceEquals(CieLuv)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(CieLuv other)
Parameters
Type | Name | Description |
---|---|---|
CieLuv | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
bool | true if |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
| Edit this page View SourceToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The fully qualified type name. |
Overrides
Operators
| Edit this page View Sourceoperator ==(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 |
---|---|
bool | True if the current left is equal to the |
operator !=(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 |
---|---|
bool | True if the current left is unequal to the |