project.android.imageprocessing.filter.colour
Class BrightnessFilter

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.ColourMatrixFilter
                  extended by project.android.imageprocessing.filter.colour.BrightnessFilter
All Implemented Interfaces:
GLTextureInputRenderer

public class BrightnessFilter
extends ColourMatrixFilter

A image brightness adjusting filter extension of BasicFilter. This filter addes the given brightness to the red, green and blue values of each pixel. Values should be in [-1, 1]. Values outside of -1 and 1 will produce pure black and pure white images respectively.

Author:
Chris Batt

Field Summary
 
Fields inherited from class project.android.imageprocessing.GLRenderer
ATTRIBUTE_POSITION, ATTRIBUTE_TEXCOORD, UNIFORM_TEXTURE0, VARYING_TEXCOORD
 
Constructor Summary
BrightnessFilter(float brightness)
          Creates a ImageBrightnessFilter that adds a given amount to red, green and blue.
 
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

BrightnessFilter

public BrightnessFilter(float brightness)
Creates a ImageBrightnessFilter that adds a given amount to red, green and blue.

Parameters:
brightness - The amount that should be added to red, green and blue.