Package org.sunflow.image
Class RGBSpace
- java.lang.Object
-
- org.sunflow.image.RGBSpace
-
public final class RGBSpace extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static RGBSpace
ADOBE
static RGBSpace
APPLE
private float
breakPoint
private float
bw
private float
bx
private float
by
private float
bz
static RGBSpace
CIE
static RGBSpace
EBU
private float
gamma
private int[]
GAMMA_CURVE
private float
gw
private float
gx
private float
gy
private float
gz
static RGBSpace
HDTV
private int[]
INV_GAMMA_CURVE
static RGBSpace
NTSC
private float
rw
private float
rx
private float
ry
private float
rz
private float
segmentOffset
private float
slope
private float
slopeMatch
static RGBSpace
SMPTE_240M
static RGBSpace
SMPTE_C
static RGBSpace
SRGB
static RGBSpace
WIDE_GAMUT
private float
xb
private float
xg
private float
xr
private float
xw
private float
yb
private float
yg
private float
yr
private float
yw
private float
zb
private float
zg
private float
zr
private float
zw
-
Constructor Summary
Constructors Constructor Description RGBSpace(float xRed, float yRed, float xGreen, float yGreen, float xBlue, float yBlue, float xWhite, float yWhite, float gamma, float breakPoint)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XYZColor
convertRGBtoXYZ(Color c)
Color
convertXYZtoRGB(float X, float Y, float Z)
Color
convertXYZtoRGB(XYZColor c)
float
gammaCorrect(float v)
boolean
insideGamut(float r, float g, float b)
static void
main(java.lang.String[] args)
byte
rgbToLinear(byte r)
int
rgbToLinear(int rgb)
byte
rgbToNonLinear(byte r)
int
rgbToNonLinear(int rgb)
java.lang.String
toString()
float
ungammaCorrect(float vp)
-
-
-
Field Detail
-
ADOBE
public static final RGBSpace ADOBE
-
APPLE
public static final RGBSpace APPLE
-
NTSC
public static final RGBSpace NTSC
-
HDTV
public static final RGBSpace HDTV
-
SRGB
public static final RGBSpace SRGB
-
CIE
public static final RGBSpace CIE
-
EBU
public static final RGBSpace EBU
-
SMPTE_C
public static final RGBSpace SMPTE_C
-
SMPTE_240M
public static final RGBSpace SMPTE_240M
-
WIDE_GAMUT
public static final RGBSpace WIDE_GAMUT
-
gamma
private final float gamma
-
breakPoint
private final float breakPoint
-
slope
private final float slope
-
slopeMatch
private final float slopeMatch
-
segmentOffset
private final float segmentOffset
-
xr
private final float xr
-
yr
private final float yr
-
zr
private final float zr
-
xg
private final float xg
-
yg
private final float yg
-
zg
private final float zg
-
xb
private final float xb
-
yb
private final float yb
-
zb
private final float zb
-
xw
private final float xw
-
yw
private final float yw
-
zw
private final float zw
-
rx
private final float rx
-
ry
private final float ry
-
rz
private final float rz
-
gx
private final float gx
-
gy
private final float gy
-
gz
private final float gz
-
bx
private final float bx
-
by
private final float by
-
bz
private final float bz
-
rw
private final float rw
-
gw
private final float gw
-
bw
private final float bw
-
GAMMA_CURVE
private final int[] GAMMA_CURVE
-
INV_GAMMA_CURVE
private final int[] INV_GAMMA_CURVE
-
-
Method Detail
-
convertXYZtoRGB
public final Color convertXYZtoRGB(float X, float Y, float Z)
-
insideGamut
public final boolean insideGamut(float r, float g, float b)
-
gammaCorrect
public final float gammaCorrect(float v)
-
ungammaCorrect
public final float ungammaCorrect(float vp)
-
rgbToNonLinear
public final int rgbToNonLinear(int rgb)
-
rgbToLinear
public final int rgbToLinear(int rgb)
-
rgbToNonLinear
public final byte rgbToNonLinear(byte r)
-
rgbToLinear
public final byte rgbToLinear(byte r)
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
main
public static void main(java.lang.String[] args)
-
-