hades.models.imaging
Class GammaFilter

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

public class GammaFilter
extends ParametrizedFilter

GammaFilter - a simple gamma/brightness/contrast filter for RGB images. The formula is:

 new_pixel_rgb = (contrast) * (pixel_rgb - offset) ^ (gamma).
 

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
GammaFilter()
           
 
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
message
 

Constructor Detail

GammaFilter

public GammaFilter()
Method Detail

filter

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

getPropertySheetFieldNames

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