public class ColorUtilities
extends java.lang.Object
Constructor and Description |
---|
ColorUtilities() |
Modifier and Type | Method and Description |
---|---|
static boolean |
big(float[] one,
float[] two) |
static int |
clamp(double v) |
static float[] |
CMYtoRGB(float[] cmy) |
static float[] |
fromRGB(int rgb,
SimpleColorModel target) |
static float[] |
fromTo(SimpleColorModel from,
float[] pixel,
SimpleColorModel to) |
static float[] |
GRAYtoRGB(float[] gray) |
static int |
HSVtoPackedRGB(float[] hsv) |
static float[] |
HSVtoRGB(float[] hsv) |
static void |
main(java.lang.String[] arsg) |
static float[] |
RGBtoCMY(java.awt.Color c) |
static float[] |
RGBtoCMY(float[] rgb) |
static float[] |
RGBtoCMY(int rgb) |
static float[] |
RGBtoCMY(int red,
int green,
int blue) |
static float[] |
RGBtoGRAY(float[] rgb) |
static float[] |
RGBtoHSV(java.awt.Color c) |
static float[] |
RGBtoHSV(float[] rgb) |
static float[] |
RGBtoHSV(int rgb) |
static float[] |
RGBtoHSV(int red,
int green,
int blue) |
static float[] |
RGBtoYUV(java.awt.Color c) |
static float[] |
RGBtoYUV(float[] rgb) |
static float[] |
RGBtoYUV(int rgb) |
static float[] |
RGBtoYUV(int red,
int green,
int blue) |
static int |
scale(float value,
SimpleColorModel model,
int band) |
static float[] |
YUVtoRGB(float[] yuv) |
static float[] |
YUVtoRGB(int y,
int u,
int v) |
public static int clamp(double v)
v
- public static int scale(float value, SimpleColorModel model, int band)
value
- model
- band
- public static float[] fromRGB(int rgb, SimpleColorModel target)
rgb
- target
- public static float[] fromTo(SimpleColorModel from, float[] pixel, SimpleColorModel to)
from
- pixel
- to
- public static float[] GRAYtoRGB(float[] gray)
gray
- public static float[] RGBtoGRAY(float[] rgb)
rgb
- public static float[] HSVtoRGB(float[] hsv)
hsv
- public static int HSVtoPackedRGB(float[] hsv)
hsv
- public static float[] RGBtoHSV(java.awt.Color c)
c
- public static float[] RGBtoHSV(int rgb)
rgb
- public static float[] RGBtoHSV(int red, int green, int blue)
red
- green
- blue
- public static float[] RGBtoHSV(float[] rgb)
rgb
- public static float[] CMYtoRGB(float[] cmy)
cmy
- public static float[] RGBtoCMY(java.awt.Color c)
c
- public static float[] RGBtoCMY(int rgb)
rgb
- public static float[] RGBtoCMY(int red, int green, int blue)
red
- green
- blue
- public static float[] RGBtoCMY(float[] rgb)
rgb
- public static float[] YUVtoRGB(float[] yuv)
yuv
- public static boolean big(float[] one, float[] two)
public static void main(java.lang.String[] arsg)
public static float[] YUVtoRGB(int y, int u, int v)
public static float[] RGBtoYUV(java.awt.Color c)
c
- public static float[] RGBtoYUV(int rgb)
rgb
- public static float[] RGBtoYUV(int red, int green, int blue)
red
- green
- blue
- public static float[] RGBtoYUV(float[] rgb)
rgb
-