uk.ac.ed.ph.signal
Class GammaGreyScale
java.lang.Object
java.awt.color.ColorSpace
uk.ac.ed.ph.signal.ColourScale
uk.ac.ed.ph.signal.GammaGreyScale
- All Implemented Interfaces:
- Serializable
public class GammaGreyScale
- extends ColourScale
ColourScale to give a Gamma grey scale
with a min/max
- See Also:
- Serialized Form
Fields inherited from class java.awt.color.ColorSpace |
CS_CIEXYZ, CS_GRAY, CS_LINEAR_RGB, CS_PYCC, CS_sRGB, TYPE_2CLR, TYPE_3CLR, TYPE_4CLR, TYPE_5CLR, TYPE_6CLR, TYPE_7CLR, TYPE_8CLR, TYPE_9CLR, TYPE_ACLR, TYPE_BCLR, TYPE_CCLR, TYPE_CMY, TYPE_CMYK, TYPE_DCLR, TYPE_ECLR, TYPE_FCLR, TYPE_GRAY, TYPE_HLS, TYPE_HSV, TYPE_Lab, TYPE_Luv, TYPE_RGB, TYPE_XYZ, TYPE_YCbCr, TYPE_Yxy |
Constructor Summary |
GammaGreyScale()
|
GammaGreyScale(ColourScale cs)
Form a GammaGreyScale from the supplied ColourScale
where lower and upper pixel values are retained. |
GammaGreyScale(double min,
double max)
Constructor setting min and max (gamma defaults to 1.0) |
GammaGreyScale(double min,
double max,
double gamma)
Constructor setting min and max and gamma |
Method Summary |
float[] |
toRGB(float value)
Method to do the linear scale gamma |
Methods inherited from class uk.ac.ed.ph.signal.ColourScale |
fromCIEXYZ, fromRGB, getGamma, getLowerLimit, getUpperLimit, scaledPixelValue, setDisplayRange, setGamma, setLimits, setLowerLimit, setReverseContarst, setUpperLimit, toCIEXYZ, toRGB |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GammaGreyScale
public GammaGreyScale(double min,
double max,
double gamma)
- Constructor setting min and max and gamma
- Parameters:
min
- the min valuemax
- the max valuegamma
- the gamma correction
GammaGreyScale
public GammaGreyScale(double min,
double max)
- Constructor setting min and max (gamma defaults to 1.0)
- Parameters:
min
- the min valuemax
- the max value
GammaGreyScale
public GammaGreyScale()
GammaGreyScale
public GammaGreyScale(ColourScale cs)
- Form a GammaGreyScale from the supplied ColourScale
where lower and upper pixel values are retained.
- Parameters:
cs
- the ColourScale
toRGB
public float[] toRGB(float value)
- Method to do the linear scale gamma
- Overrides:
toRGB
in class ColourScale
- Parameters:
value
- the pixel value
- Returns:
float[3]
the rgb values