ImageCloud
 All Classes Namespaces Functions Variables Enumerations Properties Events
Public Member Functions
VisWpf.Utils.ColorConversion.LabColorConverter Class Reference

This class converts images from the srgb or xyz space into the L*a*b* space or back. More...

List of all members.

Public Member Functions

 LabColorConverter ()
 Initialize a new Instance of the Color Converter.
double[][] ConvertSRGBArrayToLab (byte[] imageBytes)
 Converts an Image from SRGB Space to L*a*b* space.
double[] ConvertPointFromSRGBToXYZ (byte r, byte g, byte b)
 Converts a Vector from sRGB-space to CIE-XYZ Color-space.
double[] ConvertPointFromXYZToLab (double[] vector)
 Converts a Vector from CIE-XYZ Space to L*a*b* Color-space.
double[] ConvertPointFromLabToXYZ (double[] labVector)
 Converts a Vector from L*a*b* to XYZ space.
double[] ConvertPointFromXYZToSRGB (double[] xyzVector)
 Converts a Vector from XYZ to SRGB space.
double[] ConvertPointFromLabToSRGB (double[] labVector)
 Converts a Vector from L*a*b* to SRGB space.

Detailed Description

This class converts images from the srgb or xyz space into the L*a*b* space or back.


Constructor & Destructor Documentation

VisWpf.Utils.ColorConversion.LabColorConverter.LabColorConverter ( )

Initialize a new Instance of the Color Converter.


Member Function Documentation

double [] VisWpf.Utils.ColorConversion.LabColorConverter.ConvertPointFromLabToSRGB ( double[]  labVector)

Converts a Vector from L*a*b* to SRGB space.

Parameters:
labVectorThe Vector in L*a*b* space.
Returns:
The Vector in SRGB space.
double [] VisWpf.Utils.ColorConversion.LabColorConverter.ConvertPointFromLabToXYZ ( double[]  labVector)

Converts a Vector from L*a*b* to XYZ space.

Parameters:
labVectorThe Vector in L*a*b* coordinates
Returns:
The Vector in XYZ coordinates
double [] VisWpf.Utils.ColorConversion.LabColorConverter.ConvertPointFromSRGBToXYZ ( byte  r,
byte  g,
byte  b 
)

Converts a Vector from sRGB-space to CIE-XYZ Color-space.

Parameters:
rThe value for red in a 0 to 255 range
gThe value for green in a 0 to 255 range
bThe value for blue in a 0 to 255 range
Returns:
The Color Vector representing the SRGB input color in CIE-XYZ space
double [] VisWpf.Utils.ColorConversion.LabColorConverter.ConvertPointFromXYZToLab ( double[]  vector)

Converts a Vector from CIE-XYZ Space to L*a*b* Color-space.

Parameters:
vectorThe Vector in CIE-XYZ Coordinates
Returns:
The Color Vector representing the CIE-XYZ input color in L*a*b* space
double [] VisWpf.Utils.ColorConversion.LabColorConverter.ConvertPointFromXYZToSRGB ( double[]  xyzVector)

Converts a Vector from XYZ to SRGB space.

Parameters:
xyzVectorThe Vector in XYZ space.
Returns:
The Vector in SRGB space.
double [][] VisWpf.Utils.ColorConversion.LabColorConverter.ConvertSRGBArrayToLab ( byte[]  imageBytes)

Converts an Image from SRGB Space to L*a*b* space.

Parameters:
imageBytesThe image as byte array
Returns:
The Array of 3D coordinates for each pixel.

The documentation for this class was generated from the following file: