Class SaturationFilter

  extended byhades.simulator.SimObject
      extended byhades.models.imaging.ParametrizedFilter
          extended byhades.models.imaging.SaturationFilter
All Implemented Interfaces:
java.lang.Cloneable, ContextToolTip, java.io.Serializable, Simulatable

public class SaturationFilter
extends ParametrizedFilter

SaturationFilter - a simple color saturation filter for RGB images. The formula is:

   (R)    = (a d g 0) (r)
   (G)    = (b e h 0) (g)
   (B)    = (c f i 0) (b)
   (L)    = (0 0 0 1) (L)
   a = (1-s) * RW + s
   b = (1-s) * RW
   c = (1-s) * RW
   d = (1-s) * GW
   e = (1-s) * GW + s
   f = (1-s) * GW
   g = (1-s) * BW
   h = (1-s) * BW
   i = (1-s) * BW + s
with RW = 0.3086, BW = 0.6084, BW = 0.0820 (or RW = 0.299, , BW = 0.587, BW = 0.114 from YIV conversion). The allowed range of parameter s is the interval [0,2].

See Also:
Serialized Form

Field Summary
Fields inherited from class hades.models.imaging.ParametrizedFilter
d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, inputImage, outputImage, p0, p1, p2, p3, p4, p5, p6, p7, port_A, port_Y, t_delay
Fields inherited from class hades.simulator.SimObject
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible
Constructor Summary
Method Summary
 java.awt.Image filter(java.awt.Image inputImage)
 java.lang.String[] getPropertySheetFieldNames()
Methods inherited from class hades.models.imaging.ParametrizedFilter
_clip, _toDouble, _toInt, applyValuesHook, buildPorts, checkApplyCallsEvaluate, configure, copy, elaborate, evaluate, getBufferedImage, getClone, getD0, getD1, getD2, getD3, getD4, getD5, getD6, getD7, getD8, getD9, getP0, getP1, getP2, getP3, getP4, getP5, getP6, getP7, initialize, msg, setD0, setD0, setD1, setD1, setD2, setD2, setD3, setD3, setD4, setD4, setD5, setD5, setD6, setD6, setD7, setD7, setD8, setD8, setD9, setD9, setP0, setP0, setP1, setP1, setP2, setP2, setP3, setP3, setP4, setP4, setP5, setP5, setP6, setP6, setP7, setP7, toString, write
Methods inherited from class hades.simulator.SimObject
constructDynamicSymbol, getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getToolTip, getVersionId, isVisible, keyPressed, message, mousePressed, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setSymbol, setVersionId, setVisible, tearDown
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface hades.simulator.Simulatable

Constructor Detail


public SaturationFilter()
Method Detail


public java.awt.Image filter(java.awt.Image inputImage)
filter in class ParametrizedFilter


public java.lang.String[] getPropertySheetFieldNames()
getPropertySheetFieldNames in class ParametrizedFilter