Powertek.Imaging.PtColorConversion Class Reference

Color Space Conversion. More...

List of all members.

Static Public Member Functions

static void RgbToI1I2I3 (ref Byte r, ref Byte g, ref Byte b, out double i1, out double i2, out double i3)
static void RgbToI1I2I3 (ref Byte r, ref Byte g, ref Byte b, out float i1, out float i2, out float i3)
static void I1I2I3ToRgb (ref double i1, ref double i2, ref double i3, out Byte r, out Byte g, out Byte b)
static void I1I2I3ToRgb (ref float i1, ref float i2, ref float i3, out Byte r, out Byte g, out Byte b)
static void RgbToXYZ (ref Byte r, ref Byte g, ref Byte b, out double x, out double y, out double z)
static void RgbToXYZ (ref Byte r, ref Byte g, ref Byte b, out float x, out float y, out float z)
static void RgbToLUV (ref Byte r, ref Byte g, ref Byte b, out double l, out double u, out double v)
static void RgbToLUV (ref Byte r, ref Byte g, ref Byte b, out float l, out float u, out float v)
static void LuvToRGB (ref double l, ref double u, ref double v, out Byte r, out Byte g, out Byte b)
static void LuvToRGB (ref float l, ref float u, ref float v, out Byte r, out Byte g, out Byte b)
static void XyzToRGB (ref double x, ref double y, ref double z, out Byte r, out Byte g, out Byte b)
static void XyzToRGB (ref float x, ref float y, ref float z, out Byte r, out Byte g, out Byte b)
static void RgbToLAB (ref Byte R, ref Byte G, ref Byte B, out double l, out double a, out double b)
static void RgbToLAB (ref Byte R, ref Byte G, ref Byte B, out float l, out float a, out float b)
static void LabToRGB (ref double l, ref double a, ref double b, out Byte R, out Byte G, out Byte B)
static void LabToRGB (ref float l, ref float a, ref float b, out Byte R, out Byte G, out Byte B)
static void RgbToCMY (ref Byte R, ref Byte G, ref Byte B, out double c, out double m, out double y)
static void RgbToCMY (ref Byte R, ref Byte G, ref Byte B, out float c, out float m, out float y)
static void CmyToRGB (ref double c, ref double m, ref double y, out Byte R, out Byte G, out Byte B)
static void CmyToRGB (ref float c, ref float m, ref float y, out Byte R, out Byte G, out Byte B)
static void RgbToHunterLAB (ref Byte R, ref Byte G, ref Byte B, out double l, out double a, out double b)
static void RgbToHunterLAB (ref Byte R, ref Byte G, ref Byte B, out float l, out float a, out float b)
static void HunterLABToRGB (ref double l, ref double a, ref double b, out Byte R, out Byte G, out Byte B)
static void HunterLABToRGB (ref float l, ref float a, ref float b, out Byte R, out Byte G, out Byte B)
static void RgbToXyY (ref Byte R, ref Byte G, ref Byte B, out double rx, out double ry, out double rY)
static void RgbToXyY (ref Byte R, ref Byte G, ref Byte B, out float rx, out float ry, out float rY)
static void XyYToRGB (ref double rx, ref double ry, ref double rY, out Byte R, out Byte G, out Byte B)
static void XyYToRGB (ref float rx, ref float ry, ref float rY, out Byte R, out Byte G, out Byte B)
static void RgbToHSV (ref Byte r, ref Byte g, ref Byte b, out double h, out double s, out double v)
static void RgbToHSV (ref Byte r, ref Byte g, ref Byte b, out float h, out float s, out float v)
static void HsvToRGB (ref double H, ref double S, ref double V, out byte r, out byte g, out byte b)
static void HsvToRGB (ref float H, ref float S, ref float V, out byte r, out byte g, out byte b)
static void ClampToColorSpace (PtColorSpace inSpace, ref double inX, ref double inY, ref double inZ)
static void Convert (PtColorSpace inSpace, PtColorSpace outSpace, double inX, double inY, double inZ, out double outX, out double outY, out double outZ)

Public Attributes

const float CIELUV_l1_min = 0.0f
const float CIELUV_l1_max = 100.0f
const float CIELUV_u2_min = -83.079f
const float CIELUV_u2_max = 175.053f
const float CIELUV_v3_min = -134.11f
const float CIELUV_v3_max = 107.401f
const float I1I2I3_i1_min = 0.0f
const float I1I2I3_i1_max = 255.0f
const float I1I2I3_i2_min = -127.5f
const float I1I2I3_i2_max = 127.5f
const float I1I2I3_i3_min = -127.5f
const float I1I2I3_i3_max = 127.5f
const float CIELAB_l1_min = 0.0f
const float CIELAB_l1_max = 100.0f
const float CIELAB_a2_min = -86.18464f
const float CIELAB_a2_max = 98.25422f
const float CIELAB_b3_min = -107.86368f
const float CIELAB_b3_max = 94.48249f
const float CIEXYZ_x1_min = 0.0f
const float CIEXYZ_x1_max = 95.05f
const float CIEXYZ_y2_min = 0
const float CIEXYZ_y2_max = 100.0f
const float CIEXYZ_z3_min = 0.0f
const float CIEXYZ_z3_max = 108.9f
const float CMY_c1_min = 0.0f
const float CMY_c1_max = 1.0f
const float CMY_m2_min = 0.0f
const float CMY_m2_max = 1.0f
const float CMY_y3_min = 0.0f
const float CMY_y3_max = 1.0f
const float HunterLAB_l1_min = 0.0f
const float HunterLAB_l1_max = 100.0f
const float HunterLAB_a2_min = -72.51834f
const float HunterLAB_a2_max = 104.92066f
const float HunterLAB_b3_min = -190.92309f
const float HunterLAB_b3_max = 58.90047f
const float XyY_x1_min = 0.0f
const float XyY_x1_max = 0.64007f
const float XyY_y2_min = 0.0f
const float XyY_y2_max = 0.6f
const float XyY_Y3_min = 0.0f
const float XyY_Y3_max = 100.0f
const float HSV_h1_min = 0.0f
const float HSV_h1_max = 360.0f
const float HSV_s2_min = 0.0f
const float HSV_s2_max = 100.0f
const float HSV_v3_min = 0.0f
const float HSV_v3_max = 100.0f
const float RGB_r1_min = 0.0f
const float RGB_r1_max = 255.0f
const float RGB_g2_min = 0.0f
const float RGB_g2_max = 255.0f
const float RGB_b3_min = 0.0f
const float RGB_b3_max = 255.0f


Detailed Description


Member Function Documentation

static void Powertek.Imaging.PtColorConversion.ClampToColorSpace ( PtColorSpace  inSpace,
ref double  inX,
ref double  inY,
ref double  inZ 
) [static]

Clamps all three channels of the given colorspace to the limits of the RGB (0-255) Conversion Limit.

Parameters:
inSpace 
inX 
inY 
inZ 

static void Powertek.Imaging.PtColorConversion.CmyToRGB ( ref float  c,
ref float  m,
ref float  y,
out Byte  R,
out Byte  G,
out Byte  B 
) [static]

Convert CMY to RGB.

Parameters:
c 
m 
y 
R 
G 
B 

static void Powertek.Imaging.PtColorConversion.CmyToRGB ( ref double  c,
ref double  m,
ref double  y,
out Byte  R,
out Byte  G,
out Byte  B 
) [static]

Convert CMY to RGB.

Parameters:
c 
m 
y 
R 
G 
B 

static void Powertek.Imaging.PtColorConversion.Convert ( PtColorSpace  inSpace,
PtColorSpace  outSpace,
double  inX,
double  inY,
double  inZ,
out double  outX,
out double  outY,
out double  outZ 
) [static]

Convert one ColorSpace into another.

Parameters:
inSpace Source ColorSpace
outSpace Destination ColorSpace
inX Source Channel 1
inY Source Channel 2
inZ Source Channel 3
outX Resulting Channel 1
outY Resulting Channel 2
outZ Resulting Channel 3

static void Powertek.Imaging.PtColorConversion.HsvToRGB ( ref float  H,
ref float  S,
ref float  V,
out byte  r,
out byte  g,
out byte  b 
) [static]

Convert HSV to RGB.

Parameters:
H H Channel (0..360)
S S Channel (0..100)
V V Channel (0..100)
r R Channel output (0..255)
g G Channel output (0..255)
b B Channel output (0..255)

static void Powertek.Imaging.PtColorConversion.HsvToRGB ( ref double  H,
ref double  S,
ref double  V,
out byte  r,
out byte  g,
out byte  b 
) [static]

Convert HSV to RGB.

Parameters:
H H Channel (0..360)
S S Channel (0..100)
V V Channel (0..100)
r R Channel output (0..255)
g G Channel output (0..255)
b B Channel output (0..255)

static void Powertek.Imaging.PtColorConversion.HunterLABToRGB ( ref float  l,
ref float  a,
ref float  b,
out Byte  R,
out Byte  G,
out Byte  B 
) [static]

Convert Hunter Lab to RGB.

Parameters:
l 
a 
b 
R 
G 
B 

static void Powertek.Imaging.PtColorConversion.HunterLABToRGB ( ref double  l,
ref double  a,
ref double  b,
out Byte  R,
out Byte  G,
out Byte  B 
) [static]

Convert Hunter Lab to RGB.

Parameters:
l 
a 
b 
R 
G 
B 

static void Powertek.Imaging.PtColorConversion.I1I2I3ToRgb ( ref float  i1,
ref float  i2,
ref float  i3,
out Byte  r,
out Byte  g,
out Byte  b 
) [static]

Convert I1I2I3 to RGB.

Parameters:
i1 
i2 
i3 
r 
g 
b 

static void Powertek.Imaging.PtColorConversion.I1I2I3ToRgb ( ref double  i1,
ref double  i2,
ref double  i3,
out Byte  r,
out Byte  g,
out Byte  b 
) [static]

Convert I1I2I3 to RGB.

Parameters:
i1 I1 Channel
i2 I2 Channel
i3 I3 Channel
r R Channel output (0..255)
g G Channel output (0..255)
b B Channel output (0..255)

static void Powertek.Imaging.PtColorConversion.LabToRGB ( ref float  l,
ref float  a,
ref float  b,
out Byte  R,
out Byte  G,
out Byte  B 
) [static]

Convert CIE Lab to RGB.

Parameters:
l 
a 
b 
R 
G 
B 

static void Powertek.Imaging.PtColorConversion.LabToRGB ( ref double  l,
ref double  a,
ref double  b,
out Byte  R,
out Byte  G,
out Byte  B 
) [static]

Convert CIE Lab to RGB.

Parameters:
l 
a 
b 
R 
G 
B 

static void Powertek.Imaging.PtColorConversion.LuvToRGB ( ref float  l,
ref float  u,
ref float  v,
out Byte  r,
out Byte  g,
out Byte  b 
) [static]

Convert CIE Luv to RGB.

Parameters:
l 
u 
v 
r 
g 
b 

static void Powertek.Imaging.PtColorConversion.LuvToRGB ( ref double  l,
ref double  u,
ref double  v,
out Byte  r,
out Byte  g,
out Byte  b 
) [static]

Convert CIE Luv to RGB.

Parameters:
l 
u 
v 
r 
g 
b 

static void Powertek.Imaging.PtColorConversion.RgbToCMY ( ref Byte  R,
ref Byte  G,
ref Byte  B,
out float  c,
out float  m,
out float  y 
) [static]

Convert RGB to CMY.

Parameters:
R 
G 
B 
c 
m 
y 

static void Powertek.Imaging.PtColorConversion.RgbToCMY ( ref Byte  R,
ref Byte  G,
ref Byte  B,
out double  c,
out double  m,
out double  y 
) [static]

Convert RGB to CMY.

Parameters:
R 
G 
B 
c 
m 
y 

static void Powertek.Imaging.PtColorConversion.RgbToHSV ( ref Byte  r,
ref Byte  g,
ref Byte  b,
out float  h,
out float  s,
out float  v 
) [static]

Convert RGB to HSV.

Parameters:
r R Channel (0..255)
g G Channel (0..255)
b B Channel (0..255)
h H output (0..360)
s S output (0..100)
v V output (0..100)

static void Powertek.Imaging.PtColorConversion.RgbToHSV ( ref Byte  r,
ref Byte  g,
ref Byte  b,
out double  h,
out double  s,
out double  v 
) [static]

Convert RGB to HSV.

Parameters:
r R Channel (0..255)
g G Channel (0..255)
b B Channel (0..255)
h H output (0..360)
s S output (0..100)
v V output (0..100)

static void Powertek.Imaging.PtColorConversion.RgbToHunterLAB ( ref Byte  R,
ref Byte  G,
ref Byte  B,
out float  l,
out float  a,
out float  b 
) [static]

Convert RGB to Hunter Lab.

Parameters:
R 
G 
B 
l 
a 
b 

static void Powertek.Imaging.PtColorConversion.RgbToHunterLAB ( ref Byte  R,
ref Byte  G,
ref Byte  B,
out double  l,
out double  a,
out double  b 
) [static]

Convert RGB to Hunter Lab.

Parameters:
R 
G 
B 
l 
a 
b 

static void Powertek.Imaging.PtColorConversion.RgbToI1I2I3 ( ref Byte  r,
ref Byte  g,
ref Byte  b,
out float  i1,
out float  i2,
out float  i3 
) [static]

Convert RGB to I1I2I3.

Parameters:
r R Channel (0..255)
g G Channel (0..255)
b B Channel (0..255)
i1 I1 output
i2 I2 output
i3 I3 output

static void Powertek.Imaging.PtColorConversion.RgbToI1I2I3 ( ref Byte  r,
ref Byte  g,
ref Byte  b,
out double  i1,
out double  i2,
out double  i3 
) [static]

Convert RGB to I1I2I3.

Parameters:
r R Channel (0..255)
g G Channel (0..255)
b B Channel (0..255)
i1 I1 output
i2 I2 output
i3 I3 output

static void Powertek.Imaging.PtColorConversion.RgbToLAB ( ref Byte  R,
ref Byte  G,
ref Byte  B,
out float  l,
out float  a,
out float  b 
) [static]

Convert RGB to CIE Lab.

Parameters:
R 
G 
B 
l 
a 
b 

static void Powertek.Imaging.PtColorConversion.RgbToLAB ( ref Byte  R,
ref Byte  G,
ref Byte  B,
out double  l,
out double  a,
out double  b 
) [static]

Convert RGB to CIE Lab.

Parameters:
R 
G 
B 
l 
a 
b 

static void Powertek.Imaging.PtColorConversion.RgbToLUV ( ref Byte  r,
ref Byte  g,
ref Byte  b,
out float  l,
out float  u,
out float  v 
) [static]

Convert RGB to CIE Luv.

Parameters:
r 
g 
b 
l 
u 
v 

static void Powertek.Imaging.PtColorConversion.RgbToLUV ( ref Byte  r,
ref Byte  g,
ref Byte  b,
out double  l,
out double  u,
out double  v 
) [static]

Convert RGB to CIE Luv.

Parameters:
r 
g 
b 
l 
u 
v 

static void Powertek.Imaging.PtColorConversion.RgbToXyY ( ref Byte  R,
ref Byte  G,
ref Byte  B,
out float  rx,
out float  ry,
out float  rY 
) [static]

Convert RGB to XyY.

Parameters:
R 
G 
B 
rx 
ry 
rY 

static void Powertek.Imaging.PtColorConversion.RgbToXyY ( ref Byte  R,
ref Byte  G,
ref Byte  B,
out double  rx,
out double  ry,
out double  rY 
) [static]

Convert RGB to XyY.

Parameters:
R 
G 
B 
rx 
ry 
rY 

static void Powertek.Imaging.PtColorConversion.RgbToXYZ ( ref Byte  r,
ref Byte  g,
ref Byte  b,
out float  x,
out float  y,
out float  z 
) [static]

Convert RGB to XYZ.

Parameters:
r 
g 
b 
x 
y 
z 

static void Powertek.Imaging.PtColorConversion.RgbToXYZ ( ref Byte  r,
ref Byte  g,
ref Byte  b,
out double  x,
out double  y,
out double  z 
) [static]

Convert RGB to XYZ.

Parameters:
r 
g 
b 
x 
y 
z 

static void Powertek.Imaging.PtColorConversion.XyYToRGB ( ref float  rx,
ref float  ry,
ref float  rY,
out Byte  R,
out Byte  G,
out Byte  B 
) [static]

Convert XyY to RGB.

Parameters:
rx 
ry 
rY 
R 
G 
B 

static void Powertek.Imaging.PtColorConversion.XyYToRGB ( ref double  rx,
ref double  ry,
ref double  rY,
out Byte  R,
out Byte  G,
out Byte  B 
) [static]

Convert XyY to RGB.

Parameters:
rx 
ry 
rY 
R 
G 
B 

static void Powertek.Imaging.PtColorConversion.XyzToRGB ( ref float  x,
ref float  y,
ref float  z,
out Byte  r,
out Byte  g,
out Byte  b 
) [static]

Convert Xyz to RGB.

Parameters:
x 
y 
z 
r 
g 
b 

static void Powertek.Imaging.PtColorConversion.XyzToRGB ( ref double  x,
ref double  y,
ref double  z,
out Byte  r,
out Byte  g,
out Byte  b 
) [static]

Convert Xyz to RGB.

Parameters:
x 
y 
z 
r 
g 
b 


Member Data Documentation

Maximum value of CIELAB Channel2 if converted from RGB 0..255.

Minimum value of CIELAB Channel2 if converted from RGB 0..255.

Maximum value of CIELAB Channel3 if converted from RGB 0..255.

Minimum value of CIELAB Channel3 if converted from RGB 0..255.

Maximum value of CIELAB Channel1 if converted from RGB 0..255.

Minimum value of CIELAB Channel1 if converted from RGB 0..255.

Maximum value of CIELUV Channel1 if converted from RGB 0..255.

Minimum value of CIELUV Channel1 if converted from RGB 0..255.

Maximum value of CIELUV Channel2 if converted from RGB 0..255.

Minimum value of CIELUV Channel2 if converted from RGB 0..255.

Maximum value of CIELUV Channel3 if converted from RGB 0..255.

Minimum value of CIELUV Channel3 if converted from RGB 0..255.

Maximum value of CIEXYZ Channel1 if converted from RGB 0..255.

Minimum value of CIEXYZ Channel1 if converted from RGB 0..255.

Maximum value of CIEXYZ Channel2 if converted from RGB 0..255.

Minimum value of CIEXYZ Channel2 if converted from RGB 0..255.

Maximum value of CIEXYZ Channel3 if converted from RGB 0..255.

Minimum value of CIEXYZ Channel3 if converted from RGB 0..255.

Maximum value of CMY Channel1 if converted from RGB 0..255.

Minimum value of CMY Channel1 if converted from RGB 0..255.

Maximum value of CMY Channel2 if converted from RGB 0..255.

Minimum value of CMY Channel2 if converted from RGB 0..255.

Maximum value of CMY Channel3 if converted from RGB 0..255.

Minimum value of CMY Channel3 if converted from RGB 0..255.

Maximum value of HSV Channel1 if converted from RGB 0..255.

Minimum value of HSV Channel1 if converted from RGB 0..255.

Maximum value of HSV Channel2 if converted from RGB 0..255.

Minimum value of HSV Channel2 if converted from RGB 0..255.

Maximum value of HSV Channel3 if converted from RGB 0..255.

Minimum value of HSV Channel3 if converted from RGB 0..255.

Maximum value of HunterLAB Channel2 if converted from RGB 0..255.

Minimum value of HunterLAB Channel2 if converted from RGB 0..255.

Maximum value of HunterLAB Channel3 if converted from RGB 0..255.

Minimum value of HunterLAB Channel3 if converted from RGB 0..255.

Maximum value of HunterLAB Channel1 if converted from RGB 0..255.

Minimum value of HunterLAB Channel1 if converted from RGB 0..255.

Maximum value of I1I2I3 Channel1 if converted from RGB 0..255.

Minimum value of I1I2I3 Channel1 if converted from RGB 0..255.

Maximum value of I1I2I3 Channel2 if converted from RGB 0..255.

Minimum value of I1I2I3 Channel2 if converted from RGB 0..255.

Maximum value of I1I2I3 Channel3 if converted from RGB 0..255.

Minimum value of I1I2I3 Channel3 if converted from RGB 0..255.

Maximum value of RGB Channel3 (wellknown...).

Minimum value of RGB Channel3 (wellknown...).

Maximum value of RGB Channel2 (wellknown...).

Minimum value of RGB Channel2 (wellknown...).

Maximum value of RGB Channel1 (wellknown...).

Minimum value of RGB Channel1 (wellknown...).

Maximum value of XyY Channel1 if converted from RGB 0..255.

Minimum value of XyY Channel1 if converted from RGB 0..255.

Maximum value of XyY Channel2 if converted from RGB 0..255.

Minimum value of XyY Channel2 if converted from RGB 0..255.

Maximum value of XyY Channel3 if converted from RGB 0..255.

Minimum value of XyY Channel3 if converted from RGB 0..255.


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

Generated on Thu Nov 20 04:48:15 2008 for Powertek.Imaging, 2.0.2.46 by  doxygen 1.5.7.1