org.sunflow.image

Class RGBSpace


public final class RGBSpace
extends java.lang.Object

Field Summary

static RGBSpace
ADOBE
static RGBSpace
APPLE
static RGBSpace
CIE
static RGBSpace
EBU
static RGBSpace
HDTV
static RGBSpace
NTSC
static RGBSpace
SMPTE_240M
static RGBSpace
SMPTE_C
static RGBSpace
SRGB
static RGBSpace
WIDE_GAMUT

Constructor Summary

RGBSpace(float xRed, float yRed, float xGreen, float yGreen, float xBlue, float yBlue, float xWhite, float yWhite, float gamma, float breakPoint)

Method Summary

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(String[] args)
int
rgbToLinear(int rgb)
int
rgbToNonLinear(int rgb)
String
toString()
float
ungammaCorrect(float vp)

Field Details

ADOBE

public static final RGBSpace ADOBE

APPLE

public static final RGBSpace APPLE

CIE

public static final RGBSpace CIE

EBU

public static final RGBSpace EBU

HDTV

public static final RGBSpace HDTV

NTSC

public static final RGBSpace NTSC

SMPTE_240M

public static final RGBSpace SMPTE_240M

SMPTE_C

public static final RGBSpace SMPTE_C

SRGB

public static final RGBSpace SRGB

WIDE_GAMUT

public static final RGBSpace 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

convertRGBtoXYZ

public final XYZColor convertRGBtoXYZ(Color c)

convertXYZtoRGB

public final Color convertXYZtoRGB(float X,
                                   float Y,
                                   float Z)

convertXYZtoRGB

public final Color convertXYZtoRGB(XYZColor c)

gammaCorrect

public final float gammaCorrect(float v)

insideGamut

public final boolean insideGamut(float r,
                                 float g,
                                 float b)

main

public static void main(String[] args)

rgbToLinear

public final int rgbToLinear(int rgb)

rgbToNonLinear

public final int rgbToNonLinear(int rgb)

toString

public final String toString()

ungammaCorrect

public final float ungammaCorrect(float vp)