Table of Contents

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 Vector3

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.

public CieLuv(Vector3 vector, CieXyz whitePoint)

Parameters

vector Vector3

The vector representing the l, u, v components.

whitePoint CieXyz

The 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 float

The lightness dimension.

u float

The blue-yellow chromaticity coordinate of the given whitepoint.

v float

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.

public CieLuv(float l, float u, float v, CieXyz whitePoint)

Parameters

l float

The lightness dimension.

u float

The blue-yellow chromaticity coordinate of the given whitepoint.

v float

The red-green chromaticity coordinate of the given whitepoint.

whitePoint CieXyz

The reference white point. Illuminants

Fields

DefaultWhitePoint

D65 standard illuminant. Used when reference white is not specified explicitly.

public static readonly CieXyz DefaultWhitePoint

Field Value

CieXyz

Properties

L

Gets the lightness dimension A value usually ranging between 0 and 100.

public float L { get; }

Property Value

float

U

Gets the blue-yellow chromaticity coordinate of the given whitepoint. A value usually ranging between -100 and 100.

public float U { get; }

Property Value

float

V

Gets the red-green chromaticity coordinate of the given whitepoint. A value usually ranging between -100 and 100.

public float V { get; }

Property Value

float

WhitePoint

Gets the reference white point of this color

public CieXyz WhitePoint { get; }

Property Value

CieXyz

Methods

Equals(CieLuv)

public bool Equals(CieLuv other)

Parameters

other CieLuv

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CieLuv, CieLuv)

Compares two CieLuv objects for equality.

public static bool operator ==(CieLuv left, CieLuv right)

Parameters

left CieLuv

The CieLuv on the left side of the operand.

right CieLuv

The 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 CieLuv

The CieLuv on the left side of the operand.

right CieLuv

The CieLuv on the right side of the operand.

Returns

bool

True if the current left is unequal to the right parameter; otherwise, false.