Class LCompanding
- Namespace
- SixLabors.ImageSharp.ColorSpaces.Companding
- Assembly
- SixLabors.ImageSharp.dll
Implements L* companding.
public static class LCompanding
- Inheritance
-
LCompanding
- Inherited Members
Remarks
For more info see: http://www.brucelindbloom.com/index.html?Eqn_RGB_to_XYZ.html http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_RGB.html
Methods
Compress(float)
Compresses an uncompanded channel (linear) to its nonlinear equivalent.
public static float Compress(float channel)
Parameters
channel
floatThe channel value
Returns
Expand(float)
Expands a companded channel to its linear equivalent with respect to the energy.
public static float Expand(float channel)
Parameters
channel
floatThe channel value.