Package org.sunflow.image
Class RGBSpace
- java.lang.Object
-
- org.sunflow.image.RGBSpace
-
public final class RGBSpace extends java.lang.Object
-
-
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 XYZColorconvertRGBtoXYZ(Color c)ColorconvertXYZtoRGB(float X, float Y, float Z)ColorconvertXYZtoRGB(XYZColor c)floatgammaCorrect(float v)booleaninsideGamut(float r, float g, float b)static voidmain(java.lang.String[] args)bytergbToLinear(byte r)intrgbToLinear(int rgb)bytergbToNonLinear(byte r)intrgbToNonLinear(int rgb)java.lang.StringtoString()floatungammaCorrect(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
-
-
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:
toStringin classjava.lang.Object
-
main
public static void main(java.lang.String[] args)
-
-