|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.ac.sbg.cosy.soccerbot.recognition.HSVColor
public class HSVColor
Library for HSV Color conversion / information extraction
Constructor Summary | |
---|---|
HSVColor()
|
Method Summary | |
---|---|
static int |
get_H(int color)
Extracts the hue channel value out of an hsv int value |
static int |
get_S(int color)
Extracts the saturation channel value out of an hsv int value |
static int |
get_V(int color)
Extracts the value channel value out of an hsv int value |
static int |
hsv(int h,
int s,
int v)
Creates an hsv format representation of three hue, saturation, value channel values hue within 0x00 - 0xFFFF, all others within 0x00 - 0xFF. |
static int |
hsv2rgb(int hsv)
Converts hsv values into rgb values (lossy transformation) alpha channel is not used (set to 255). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HSVColor()
Method Detail |
---|
public static int get_H(int color)
color
- int-color value in 32-bit hsv format (0xHHHHSSVV)
public static int get_S(int color)
color
- int-color value in 32-bit hsv format (0xHHHHSSVV)
public static int get_V(int color)
color
- int-color value in 32-bit hsv format (0xHHHHSSVV)
public static int hsv(int h, int s, int v)
h
- hue value in 0x00 - 0xFFFFs
- saturation value in 0x00 - 0xFFv
- brightness (value) value in 0x00 - 0xFF
public static int hsv2rgb(int hsv)
hsv
- hsv 32-bit format (0xHHHHSSVV) representation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |