edu.berkeley.guir.papier_mache.vision
Class IHSColor
java.lang.Object
edu.berkeley.guir.papier_mache.vision.IHSColor
- public class IHSColor
- extends java.lang.Object
Represents a color in the IHS Colorspace.
This software is distributed under the
Berkeley Software License.
- Author:
- Scott Klemmer ( srk(AT)cs.berkeley.edu )
Constructor Summary |
IHSColor(java.awt.Color rgbColor)
|
IHSColor(float intensity,
float hue,
float saturation)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IHSColor
public IHSColor(float intensity,
float hue,
float saturation)
- Parameters:
intensity
- Intensity value must be between 0 and 1hue
- Hue value must be between 0 and HUE_MAXsaturation
- Saturation must be between 0 and 1
IHSColor
public IHSColor(java.awt.Color rgbColor)
getRGBColor
public java.awt.Color getRGBColor()
setIntensity
public void setIntensity(float intensity)
setHue
public void setHue(float hue)
setSaturation
public void setSaturation(float saturation)
getColorComponents
public float[] getColorComponents()
getIntensity
public float getIntensity()
getHue
public float getHue()
getSaturation
public float getSaturation()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object