Package org.sunflow.image
Class RGBSpace
java.lang.Object
org.sunflow.image.RGBSpace
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRGBSpace
(float xRed, float yRed, float xGreen, float yGreen, float xBlue, float yBlue, float xWhite, float yWhite, float gamma, float breakPoint) -
Method Summary
Modifier and TypeMethodDescriptionfinal XYZColor
final Color
convertXYZtoRGB
(float X, float Y, float Z) final Color
final float
gammaCorrect
(float v) final boolean
insideGamut
(float r, float g, float b) static void
final byte
rgbToLinear
(byte r) final int
rgbToLinear
(int rgb) final byte
rgbToNonLinear
(byte r) final int
rgbToNonLinear
(int rgb) final String
toString()
final float
ungammaCorrect
(float vp)
-
Field Details
-
ADOBE
-
APPLE
-
NTSC
-
HDTV
-
SRGB
-
CIE
-
EBU
-
SMPTE_C
-
SMPTE_240M
-
WIDE_GAMUT
-
-
Constructor Details
-
RGBSpace
public RGBSpace(float xRed, float yRed, float xGreen, float yGreen, float xBlue, float yBlue, float xWhite, float yWhite, float gamma, float breakPoint)
-
-
Method Details
-
convertXYZtoRGB
-
convertXYZtoRGB
-
convertRGBtoXYZ
-
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
-
main
-