de.unihalle.informatik.MiToBo.color.conversion
Class HSVToRGBPixelConverter

java.lang.Object
  extended by de.unihalle.informatik.Alida.operator.ALDOperator
      extended by de.unihalle.informatik.MiToBo.core.operator.MTBOperator
          extended by de.unihalle.informatik.MiToBo.color.conversion.HSVToRGBPixelConverter
All Implemented Interfaces:
de.unihalle.informatik.Alida.datatypes.ALDConfigurationValidator, de.unihalle.informatik.Alida.operator.events.ALDOperatorExecutionProgressEventListener, EventListener

public class HSVToRGBPixelConverter
extends MTBOperator

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

This implementation is taken from
W. Burger/M. Burge, "Digitale Bildverarbeitung", pp.256, Springer, 2nd edition, 2006.

Author:
Danny Misiak

Nested Class Summary
 
Nested classes/interfaces inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.operator.ALDOperator.HidingMode
 
Field Summary
 
Fields inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
completeDAG, name, operatorExecutionEventlistenerList, portHashAccess, verbose, versionProvider
 
Constructor Summary
HSVToRGBPixelConverter()
          Standard constructor.
HSVToRGBPixelConverter(double h, double s, double v)
          Constructor to create a HSVconverter object
 
Method Summary
 int[] getRGBResult()
          Get RGB values.
protected  void operate()
           
 void toRGB()
          Method to convert a single color from HSV color space into RGB color space.
 
Methods inherited from class de.unihalle.informatik.MiToBo.core.operator.MTBOperator
readResolve
 
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
addOperatorExecutionProgressEventListener, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getHidingMode, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterNames, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, isConfigured, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, runOp, runOp, runOp, setConstructionMode, setHidingMode, setName, setParameter, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HSVToRGBPixelConverter

public HSVToRGBPixelConverter()
                       throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Standard constructor.

Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException

HSVToRGBPixelConverter

public HSVToRGBPixelConverter(double h,
                              double s,
                              double v)
                       throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Constructor to create a HSVconverter object

Parameters:
h - hue of HSV space
s - saturation of HSV space
v - brightness value of HSV space
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail

getRGBResult

public int[] getRGBResult()
Get RGB values.

Returns:
Array of R, G and B value.

operate

protected void operate()
Specified by:
operate in class de.unihalle.informatik.Alida.operator.ALDOperator

toRGB

public void toRGB()
Method to convert a single color from HSV color space into RGB color space.



Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.