Table of Contents

Class GammaCompanding

Namespace
SixLabors.ImageSharp.ColorProfiles.Companding
Assembly
SixLabors.ImageSharp.dll

Implements gamma companding.

public static class GammaCompanding
Inheritance
GammaCompanding
Inherited Members

Remarks

Methods

Compress(Vector4, double)

Compresses the linear vector to its nonlinear equivalent with respect to the energy.

public static Vector4 Compress(Vector4 vector, double gamma)

Parameters

vector Vector4

The vector.

gamma double

The gamma value.

Returns

Vector4

The Vector4.

Compress(Span<Vector4>, double)

Compresses the linear vectors to their nonlinear equivalents with respect to the energy.

public static void Compress(Span<Vector4> vectors, double gamma)

Parameters

vectors Span<Vector4>

The span of vectors.

gamma double

The gamma value.

Expand(Vector4, double)

Expands the nonlinear vector to its linear equivalent with respect to the energy.

public static Vector4 Expand(Vector4 vector, double gamma)

Parameters

vector Vector4

The vector.

gamma double

The gamma value.

Returns

Vector4

The Vector4.

Expand(Span<Vector4>, double)

Expands the nonlinear vectors to their linear equivalents with respect to the energy.

public static void Expand(Span<Vector4> vectors, double gamma)

Parameters

vectors Span<Vector4>

The span of vectors.

gamma double

The gamma value.