public class ColorConverter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ColorConverter.YCbCrColorSpace |
| Modifier and Type | Field and Description |
|---|---|
static double[] |
CIE10_A |
static double[] |
CIE10_C |
static double[] |
CIE10_D50 |
static double[] |
CIE10_D55 |
static double[] |
CIE10_D65 |
static double[] |
CIE10_D75 |
static double[] |
CIE10_F11 |
static double[] |
CIE10_F2 |
static double[] |
CIE10_F7 |
static double[] |
CIE2_A |
static double[] |
CIE2_C |
static double[] |
CIE2_D50 |
static double[] |
CIE2_D55 |
static double[] |
CIE2_D65 |
static double[] |
CIE2_D75 |
static double[] |
CIE2_F11 |
static double[] |
CIE2_F2 |
static double[] |
CIE2_F7 |
| Modifier and Type | Method and Description |
|---|---|
static int[] |
CMYKtoRGB(double c,
double m,
double y,
double k)
CMYK -> RGB
|
static int[] |
HSLtoRGB(double hue,
double saturation,
double luminance)
HLS -> RGB.
|
static int[] |
HSVtoRGB(double hue,
double saturation,
double value)
HSV -> RGB.
|
static int[] |
HunterLABtoRGB(double l,
double a,
double b)
HunterLAB -> RGB.
|
static double[] |
HunterLABtoXYZ(double l,
double a,
double b)
HunterLAB -> XYZ
|
static double[] |
IHStoRGB(double[] ihs)
IHS -> RGB
|
static int[] |
LABtoRGB(double l,
double a,
double b,
double[] tristimulus)
CIE-LAB -> RGB.
|
static double[] |
LABtoXYZ(double l,
double a,
double b,
double[] tristimulus)
CIE-LAB -> XYZ.
|
static double[] |
RGBtoC1C2C3(Color color)
RGB -> C1C2C3.
|
static double[] |
RGBtoC1C2C3(int r,
int g,
int b)
RGB -> C1C2C3.
|
static double[] |
RGBtoCMYK(Color color)
RGB -> CMYK
|
static double[] |
RGBtoCMYK(int red,
int green,
int blue)
RGB -> CMYK
|
static double |
RGBtoGrayscale(Color color)
RGB -> Grayscale.
|
static double |
RGBtoGrayscale(int r,
int g,
int b)
RGB -> Grayscale.
|
static double[] |
RGBtoHSL(Color color)
RGB -> HSL.
|
static double[] |
RGBtoHSL(int red,
int green,
int blue)
RGB -> HSL.
|
static double[] |
RGBtoHSV(Color color)
RGB -> HSV.
|
static double[] |
RGBtoHSV(int red,
int green,
int blue)
RGB -> HSV.
|
static double[] |
RGBtoHunterLAB(Color color)
RGB -> HunterLAB.
|
static double[] |
RGBtoHunterLAB(int red,
int green,
int blue)
RGB -> HunterLAB.
|
static double[] |
RGBtoIHS(Color color)
RGB -> IHS
|
static double[] |
RGBtoIHS(int red,
int green,
int blue)
RGB -> IHS
|
static double[] |
RGBtoLAB(Color color,
double[] tristimulus)
RGB -> CIE-LAB.
|
static double[] |
RGBtoLAB(int red,
int green,
int blue,
double[] tristimulus)
RGB -> CIE-LAB.
|
static double[] |
RGBtoO1O2(Color color)
RGB -> O1O2.
|
static double[] |
RGBtoO1O2(int r,
int g,
int b)
RGB -> O1O2.
|
static double[] |
RGBtoXYZ(Color color)
RGB -> XYZ.
|
static double[] |
RGBtoXYZ(int red,
int green,
int blue)
RGB -> XYZ.
|
static double[] |
RGBtoYCbCr(Color color,
ColorConverter.YCbCrColorSpace colorSpace) |
static double[] |
RGBtoYCbCr(int red,
int green,
int blue,
ColorConverter.YCbCrColorSpace colorSpace) |
static double[] |
RGBtoYCC(Color color)
RGB -> YCC.
|
static double[] |
RGBtoYCC(int red,
int green,
int blue)
RGB -> YCC.
|
static double[] |
RGBtoYCoCg(Color color)
RGB -> YCoCg.
|
static double[] |
RGBtoYCoCg(int red,
int green,
int blue)
RGB -> YCoCg.
|
static double[] |
RGBtoYIQ(Color color)
RGB -> YIQ.
|
static double[] |
RGBtoYIQ(int red,
int green,
int blue)
RGB -> YIQ.
|
static double[] |
RGBtoYUV(Color color)
RGB -> YUV.
|
static double[] |
RGBtoYUV(int red,
int green,
int blue)
RGB -> YUV.
|
static double[] |
RGChromaticity(Color color)
Rg-Chromaticity space is already known to remove ambiguities due to illumination or surface pose.
|
static double[] |
RGChromaticity(int red,
int green,
int blue)
Rg-Chromaticity space is already known to remove ambiguities due to illumination or surface pose.
|
static double[] |
XYZtoHunterLAB(double x,
double y,
double z)
XYZ -> HunterLAB
|
static double[] |
XYZtoLAB(double x,
double y,
double z,
double[] tristimulus)
XYZ -> CIE-LAB.
|
static int[] |
XYZtoRGB(double x,
double y,
double z)
XYZ -> RGB
|
static int[] |
YCbCrtoRGB(double y,
double cb,
double cr,
ColorConverter.YCbCrColorSpace colorSpace) |
static int[] |
YCCtoRGB(double y,
double c1,
double c2)
YCC -> RGB.
|
static int[] |
YCoCgtoRGB(double y,
double co,
double cg)
YCoCg -> RGB.
|
static int[] |
YIQtoRGB(double y,
double i,
double q)
YIQ -> RGB.
|
static int[] |
YUVtoRGB(double y,
double u,
double v)
YUV -> RGB.
|
public static double[] CIE2_A
public static double[] CIE2_C
public static double[] CIE2_D50
public static double[] CIE2_D55
public static double[] CIE2_D65
public static double[] CIE2_D75
public static double[] CIE2_F2
public static double[] CIE2_F7
public static double[] CIE2_F11
public static double[] CIE10_A
public static double[] CIE10_C
public static double[] CIE10_D50
public static double[] CIE10_D55
public static double[] CIE10_D65
public static double[] CIE10_D75
public static double[] CIE10_F2
public static double[] CIE10_F7
public static double[] CIE10_F11
public static double[] RGBtoCMYK(Color color)
color - Color.public static double[] RGBtoCMYK(int red,
int green,
int blue)
red - Values in the range [0..255].green - Values in the range [0..255].blue - Values in the range [0..255].public static int[] CMYKtoRGB(double c,
double m,
double y,
double k)
c - Cyan.m - Magenta.y - Yellow.k - Black.public static double[] RGBtoIHS(Color color)
color - Color.public static double[] RGBtoIHS(int red,
int green,
int blue)
red - Values in the range [0..255].green - Values in the range [0..255].blue - Values in the range [0..255].public static double[] IHStoRGB(double[] ihs)
ihs - IHS vector.public static double[] RGBtoYUV(Color color)
color - Color.public static double[] RGBtoYUV(int red,
int green,
int blue)
red - Values in the range [0..255].green - Values in the range [0..255].blue - Values in the range [0..255].public static int[] YUVtoRGB(double y,
double u,
double v)
y - Luma. In the range [0..1].u - Chrominance. In the range [-0.5..0.5].v - Chrominance. In the range [-0.5..0.5].public static double[] RGBtoYIQ(Color color)
color - Color.public static double[] RGBtoYIQ(int red,
int green,
int blue)
red - Values in the range [0..255].green - Values in the range [0..255].blue - Values in the range [0..255].public static int[] YIQtoRGB(double y,
double i,
double q)
y - Luma. Values in the range [0..1].i - In-phase. Values in the range [-0.5..0.5].q - Quadrature. Values in the range [-0.5..0.5].public static double[] RGBtoYCbCr(Color color, ColorConverter.YCbCrColorSpace colorSpace)
public static double[] RGBtoYCbCr(int red,
int green,
int blue,
ColorConverter.YCbCrColorSpace colorSpace)
public static int[] YCbCrtoRGB(double y,
double cb,
double cr,
ColorConverter.YCbCrColorSpace colorSpace)
public static double[] RGChromaticity(Color color)
color - Color.public static double[] RGChromaticity(int red,
int green,
int blue)
red - Red coefficient.green - Green coefficient.blue - Blue coefficient.Information Processing - Chi Sing Leung. p. 668public static double[] RGBtoHSV(Color color)
color - Color.public static double[] RGBtoHSV(int red,
int green,
int blue)
red - Red coefficient. Values in the range [0..255].green - Green coefficient. Values in the range [0..255].blue - Blue coefficient. Values in the range [0..255].public static int[] HSVtoRGB(double hue,
double saturation,
double value)
hue - Hue.saturation - Saturation. In the range[0..1].value - Value. In the range[0..1].public static double[] RGBtoYCC(Color color)
color - Color.public static double[] RGBtoYCC(int red,
int green,
int blue)
red - Red coefficient. Values in the range [0..255].green - Green coefficient. Values in the range [0..255].blue - Blue coefficient. Values in the range [0..255].public static int[] YCCtoRGB(double y,
double c1,
double c2)
y - Y coefficient.c1 - C coefficient.c2 - C coefficient.public static double[] RGBtoYCoCg(Color color)
color - Color.public static double[] RGBtoYCoCg(int red,
int green,
int blue)
red - Red coefficient. Values in the range [0..255].green - Green coefficient. Values in the range [0..255].blue - Blue coefficient. Values in the range [0..255].public static int[] YCoCgtoRGB(double y,
double co,
double cg)
y - Pseudo luminance, or intensity.co - Orange chrominance.cg - Green chrominance.public static double[] RGBtoXYZ(Color color)
color - Color.public static double[] RGBtoXYZ(int red,
int green,
int blue)
red - Red coefficient. Values in the range [0..255].green - Green coefficient. Values in the range [0..255].blue - Blue coefficient. Values in the range [0..255].public static int[] XYZtoRGB(double x,
double y,
double z)
x - X coefficient.y - Y coefficient.z - Z coefficient.public static double[] XYZtoHunterLAB(double x,
double y,
double z)
x - X coefficient.y - Y coefficient.z - Z coefficient.public static double[] HunterLABtoXYZ(double l,
double a,
double b)
l - L coefficient.a - A coefficient.b - B coefficient.public static double[] RGBtoHunterLAB(Color color)
color - Color.public static double[] RGBtoHunterLAB(int red,
int green,
int blue)
red - Red coefficient. Values in the range [0..255].green - Green coefficient. Values in the range [0..255].blue - Blue coefficient. Values in the range [0..255].public static int[] HunterLABtoRGB(double l,
double a,
double b)
l - L coefficient.a - A coefficient.b - B coefficient.public static double[] RGBtoHSL(Color color)
color - Color.public static double[] RGBtoHSL(int red,
int green,
int blue)
red - Red coefficient. Values in the range [0..255].green - Green coefficient. Values in the range [0..255].blue - Blue coefficient. Values in the range [0..255].public static int[] HSLtoRGB(double hue,
double saturation,
double luminance)
hue - Hue.saturation - Saturation.luminance - Luminance.public static double[] RGBtoLAB(Color color, double[] tristimulus)
color - Color.tristimulus - XYZ Tristimulus.public static double[] RGBtoLAB(int red,
int green,
int blue,
double[] tristimulus)
red - Red coefficient. Values in the range [0..255].green - Green coefficient. Values in the range [0..255].blue - Blue coefficient. Values in the range [0..255].tristimulus - XYZ Tristimulus.public static int[] LABtoRGB(double l,
double a,
double b,
double[] tristimulus)
l - L coefficient.a - A coefficient.b - B coefficient.tristimulus - XYZ Tristimulus.public static double[] XYZtoLAB(double x,
double y,
double z,
double[] tristimulus)
x - X coefficient.y - Y coefficient.z - Z coefficient.tristimulus - XYZ Tristimulus.public static double[] LABtoXYZ(double l,
double a,
double b,
double[] tristimulus)
l - L coefficient.a - A coefficient.b - B coefficient.tristimulus - XYZ Tristimulus.public static double[] RGBtoC1C2C3(Color color)
color - Color.public static double[] RGBtoC1C2C3(int r,
int g,
int b)
r - Red coefficient. Values in the range [0..255].g - Green coefficient. Values in the range [0..255].b - Blue coefficient. Values in the range [0..255].public static double[] RGBtoO1O2(Color color)
color - Color.public static double[] RGBtoO1O2(int r,
int g,
int b)
r - Red coefficient. Values in the range [0..255].g - Green coefficient. Values in the range [0..255].b - Blue coefficient. Values in the range [0..255].public static double RGBtoGrayscale(Color color)
color - Color.public static double RGBtoGrayscale(int r,
int g,
int b)
r - Red coefficient. Values in the range [0..255].g - Green coefficient. Values in the range [0..255].b - Blue coefficient. Values in the range [0..255].