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 XYZColorfinal ColorconvertXYZtoRGB(float X, float Y, float Z) final Colorfinal floatgammaCorrect(float v) final booleaninsideGamut(float r, float g, float b) static voidfinal bytergbToLinear(byte r) final intrgbToLinear(int rgb) final bytergbToNonLinear(byte r) final intrgbToNonLinear(int rgb) final StringtoString()final floatungammaCorrect(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
-