java.lang.Object
org.sunflow.image.RGBSpace
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRGBSpace
(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 void
convertXYZtoRGB
(float X, float Y, float Z, Tuple3f out) final void
convertXYZtoRGB
(Tuple3f c, Tuple3f out) final Color
final void
convertXYZtoRGB
(XYZColor c, Tuple3f out) final float
gammaCorrect
(float v) final boolean
insideGamut
(float r, float g, float b) static void
final int
rgbToLinear
(int rgb) 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
-
convertXYZtoRGB
-
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) -
toString
-
main
-