de.unihalle.informatik.MiToBo.tools
Class HSIConverter

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.tools.HSIConverter

public class HSIConverter
extends java.lang.Object

 Class to convert values from HSI color space into other color spaces like RGB
 or so.
 
 H: color value.
 S: saturation of color.
 I: color intensity.
 
 Ranges of HSI:
   H in [0,360) (representing degrees),
   S and I in [0, 1] (representing [0, 100 %]).
 

Author:
misiak

Field Summary
private  double h
          Hue of HIS space.
private  double i
          Intensity of HIS space.
private  double s
          Saturation of HIS space.
 
Constructor Summary
HSIConverter()
          Standard constructor.
HSIConverter(double h, double s, double i)
          Constructor to create a HSIconverter object
 
Method Summary
 int[] toRGB()
          Method to convert a single color from HSI color space into RGB color space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

h

private double h
Hue of HIS space.


i

private double i
Intensity of HIS space.


s

private double s
Saturation of HIS space.

Constructor Detail

HSIConverter

public HSIConverter()
Standard constructor.


HSIConverter

public HSIConverter(double h,
                    double s,
                    double i)
Constructor to create a HSIconverter object

Parameters:
h - hue of HIS space
s - saturation of HIS space
i - intensity of HIS space
Method Detail

toRGB

public int[] toRGB()
Method to convert a single color from HSI color space into RGB color space.

Returns:
Integer array with values for r,g,b.