project.android.imageprocessing.filter.colour
Class SaturationFilter

java.lang.Object
  extended by project.android.imageprocessing.GLRenderer
      extended by project.android.imageprocessing.input.GLTextureOutputRenderer
          extended by project.android.imageprocessing.filter.BasicFilter
              extended by project.android.imageprocessing.filter.colour.SaturationFilter
All Implemented Interfaces:
GLTextureInputRenderer

public class SaturationFilter
extends BasicFilter

A saturation adjustment filter extension of BasicFilter. This filter saturates or desaturates the input image based on a given saturation value. Values should be in [0, 2] for normal usage; however, all positive values should produce results. Values below 1 will desaturate while values above 1 will saturate. This filter will not adjust alpha values.

Author:
Chris Batt

Field Summary
 
Fields inherited from class project.android.imageprocessing.GLRenderer
ATTRIBUTE_POSITION, ATTRIBUTE_TEXCOORD, UNIFORM_TEXTURE0, VARYING_TEXCOORD
 
Constructor Summary
SaturationFilter(float saturation)
          Creates an ImageSaturationFilter with a given saturation adjustment value.
 
Method Summary
 
Methods inherited from class project.android.imageprocessing.filter.BasicFilter
newTextureReady
 
Methods inherited from class project.android.imageprocessing.input.GLTextureOutputRenderer
addTarget, destroy, getLockObject, getTargets, removeTarget
 
Methods inherited from class project.android.imageprocessing.GLRenderer
getBackgroundAlpha, getBackgroundBlue, getBackgroundGreen, getBackgroundRed, getHeight, getWidth, onDrawFrame, reInitialize, rotateClockwise90Degrees, rotateCounterClockwise90Degrees, setBackgroundAlpha, setBackgroundBlue, setBackgroundColour, setBackgroundGreen, setBackgroundRed, setRenderSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaturationFilter

public SaturationFilter(float saturation)
Creates an ImageSaturationFilter with a given saturation adjustment value.

Parameters:
saturation - The saturation adjustment value.