project.android.imageprocessing.filter.colour
Class ImageBrightnessFilter

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.ImageBrightnessFilter
All Implemented Interfaces:
GLTextureInputRenderer

public class ImageBrightnessFilter
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

Constructor Summary
ImageBrightnessFilter(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, getTargets, onDrawFrame, onSurfaceCreated, removeTarget, setRenderSize
 
Methods inherited from class project.android.imageprocessing.GLRenderer
getHeight, getWidth, onPause, onResume, rotateClockwise90Degrees, rotateCounterClockwise90Degrees
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageBrightnessFilter

public ImageBrightnessFilter(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.