public final class ColorConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
private static double |
c4 |
private static double |
uuRef |
private static double |
vvRef |
private static double |
Xref |
private static double |
Yref |
private static double |
Zref |
| Constructor and Description |
|---|
ColorConverter() |
| Modifier and Type | Method and Description |
|---|---|
static float[] |
CIELABtoRGB(float l,
float a,
float b)
CIELAB to RGB
|
static Raster |
CIELABtoRGB(Raster raster)
CIELAB to RGB
|
static float[] |
CIELUVtoRGB(float l,
float u,
float v)
CIELUV to RGB
|
static Raster |
CIELUVtoRGB(Raster raster)
CIELUV to RGB
|
static float[] |
CIEXYZtoRGB(float x,
float y,
float z)
CIEXYZ to RGB
|
static Raster |
CIEXYZtoRGB(Raster raster)
CIEXYZ to RGB
|
private static double |
f1(double t)
These are helper routines for CIELAB and CIELUV Parts are from: Wilhelm
BURGER Mark J.
|
private static double |
f2(double t) |
static float[] |
HLStoRGB(float h,
float l,
float s)
HLS to RGB tested OK 5.1.2010 input and output [0,..,255] This is from:
Wilhelm BURGER Mark J.
|
static Raster |
HLStoRGB(Raster raster)
HLS to RGB
|
static float[] |
HSVtoRGB(float h,
float s,
float v)
HSV to RGB tested OK 5.1.2010 input and output [0,..,255] This is from:
Wilhelm BURGER Mark J.
|
static Raster |
HSVtoRGB(Raster raster)
HSV to RGB
|
static float[] |
rgb2hmmd(float r,
float g,
float b)
RGB to HMMD not yet tested
|
static float[] |
rgb2hsb(float r,
float g,
float b)
RGB to HSB tested input and output [0,..,255];
|
static float[] |
rgb2hsl(float r,
float g,
float b) |
static float[] |
rgb2hsv(float r,
float g,
float b) |
static float[] |
rgb2lab(float R,
float G,
float B) |
static float[] |
rgb2luv(float R,
float G,
float B) |
static float[] |
rgb2xyY(float R,
float G,
float B) |
static float[] |
rgb2xyz(float R,
float G,
float B) |
static float[] |
rgb2ycbcr(float r,
float g,
float b) |
static float[] |
rgb2yuv(float r,
float g,
float b) |
static float[] |
RGBtoCIELAB(float r,
float g,
float b)
RGB to CIELAB
|
static Raster |
RGBtoCIELAB(Raster raster)
RGB to CIELAB
|
static float[] |
RGBtoCIELUV(float r,
float g,
float b)
RGB to CIELUV
|
static Raster |
RGBtoCIELUV(Raster raster)
RGB to CIELUV
|
static float[] |
RGBtoCIEXYZ(float r,
float g,
float b)
RGB to CIEXYZ
|
static Raster |
RGBtoCIEXYZ(Raster raster)
RGB to CIEXYZ
|
static float[] |
RGBtoHLS(float r,
float g,
float b)
RGB to HLS tested OK 5.1.2010 input and output [0,..,255] This is from:
Wilhelm BURGER Mark J.
|
static Raster |
RGBtoHLS(Raster raster)
RGB to HLS
|
static Raster |
RGBtoHSV(Raster raster)
RGB to HSB
|
private static final double Xref
private static final double Yref
private static final double Zref
private static final double c4
private static final double uuRef
private static final double vvRef
public static float[] rgb2hsb(float r,
float g,
float b)
r - g - b - public static Raster RGBtoHSV(Raster raster)
raster - 3bands RGBpublic static float[] RGBtoHLS(float r,
float g,
float b)
r - g - b - public static Raster RGBtoHLS(Raster raster)
raster - 3bands RGBpublic static float[] HLStoRGB(float h,
float l,
float s)
h - l - s - public static Raster HLStoRGB(Raster raster)
raster - 3bands HLSpublic static float[] HSVtoRGB(float h,
float s,
float v)
h - s - v - public static Raster HSVtoRGB(Raster raster)
raster - 3bands HSVpublic static float[] RGBtoCIEXYZ(float r,
float g,
float b)
r - g - b - public static Raster RGBtoCIEXYZ(Raster raster)
raster - 3bands RGBpublic static float[] CIEXYZtoRGB(float x,
float y,
float z)
x - y - z - public static Raster CIEXYZtoRGB(Raster raster)
raster - 3bands CIEXYZprivate static double f1(double t)
private static double f2(double t)
public static float[] RGBtoCIELAB(float r,
float g,
float b)
r - g - b - public static Raster RGBtoCIELAB(Raster raster)
raster - 3bands RGBpublic static float[] CIELABtoRGB(float l,
float a,
float b)
l - a - b - public static Raster CIELABtoRGB(Raster raster)
raster - 3bands CIELABpublic static float[] RGBtoCIELUV(float r,
float g,
float b)
r - g - b - public static Raster RGBtoCIELUV(Raster raster)
raster - 3bands RGBpublic static float[] CIELUVtoRGB(float l,
float u,
float v)
l - u - v - public static Raster CIELUVtoRGB(Raster raster)
raster - 3bands CIELUVpublic static float[] rgb2hsl(float r,
float g,
float b)
public static float[] rgb2hsv(float r,
float g,
float b)
public static float[] rgb2xyY(float R,
float G,
float B)
public static float[] rgb2xyz(float R,
float G,
float B)
public static float[] rgb2lab(float R,
float G,
float B)
public static float[] rgb2luv(float R,
float G,
float B)
public static float[] rgb2ycbcr(float r,
float g,
float b)
public static float[] rgb2yuv(float r,
float g,
float b)
public static float[] rgb2hmmd(float r,
float g,
float b)
r - g - b - Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.