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

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.HSIToRGBPixelConverter
All Implemented Interfaces:
de.unihalle.informatik.Alida.datatypes.ALDConfigurationValidator, de.unihalle.informatik.Alida.operator.events.ALDOperatorExecutionProgressEventListener, EventListener

@ALDAOperator(genericExecutionMode=ALL,
              level=APPLICATION)
public class HSIToRGBPixelConverter
extends MTBOperator

Operator to convert a single HSI value to RGB.

In comparison to the HSV color space here in the HSI space hue, saturation and intensity are not completely decoupled, i.e. changes in one of the components may also influence others.
This operator expects all three value H, S and I to be normalized to a range of [0,1]. The returned values for R, G and B are also each normalized to a range of [0,1]. The implementation is based on

Gonzalez/Woods, "Digital Image Processing", pp. 235, Addison-Wesley, 1992

Author:
moeller

Nested Class Summary
 
Nested classes/interfaces inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.operator.ALDOperator.HidingMode
 
Field Summary
protected  double[] hsiInput
          Input HSI values.
protected  double[] rgbOutput
          Output RGB values.
 
Fields inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
completeDAG, name, operatorExecutionEventlistenerList, portHashAccess, verbose, versionProvider
 
Constructor Summary
HSIToRGBPixelConverter()
          Default constructor.
HSIToRGBPixelConverter(double[] hsi)
          Constructor.
 
Method Summary
 double[] getResultRGB()
          Returns the result RGB color.
protected  void operate()
          This method does the actual work.
 void setHSIInput(double[] hsiVal)
          Specify HSI value to be converted.
 
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
 

Field Detail

hsiInput

@Parameter(label="HSI Input",
           required=true,
           dataIOOrder=-1,
           direction=IN,
           description="HSI input values.")
protected double[] hsiInput
Input HSI values.


rgbOutput

@Parameter(label="RGB Output",
           dataIOOrder=-1,
           direction=OUT,
           description="RGB output values.")
protected double[] rgbOutput
Output RGB values.

Constructor Detail

HSIToRGBPixelConverter

public HSIToRGBPixelConverter()
                       throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Default constructor.

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

HSIToRGBPixelConverter

public HSIToRGBPixelConverter(double[] hsi)
                       throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Constructor.

Parameters:
hsi - HSI value to convert.
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail

setHSIInput

public void setHSIInput(double[] hsiVal)
Specify HSI value to be converted.

Parameters:
hsiVal - HSI value.

getResultRGB

public double[] getResultRGB()
Returns the result RGB color.


operate

protected void operate()
This method does the actual work.

Specified by:
operate in class de.unihalle.informatik.Alida.operator.ALDOperator


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