project.android.imageprocessing.filter.processing
Class ConvolutionFilter

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.MultiPixelRenderer
                  extended by project.android.imageprocessing.filter.processing.ConvolutionFilter
All Implemented Interfaces:
GLTextureInputRenderer
Direct Known Subclasses:
EmbossFilter

public class ConvolutionFilter
extends MultiPixelRenderer

A basic convolution filter implementation of the MultiPixelRenderer. This class works for convolution filters of any size; however, if the size is an even number, the filter will favour the bottom right.

Author:
Chris Batt

Field Summary
 
Fields inherited from class project.android.imageprocessing.GLRenderer
ATTRIBUTE_POSITION, ATTRIBUTE_TEXCOORD, UNIFORM_TEXTURE0, VARYING_TEXCOORD
 
Constructor Summary
ConvolutionFilter(float[] filter, int filterWidth, int filterHeight)
           
 
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

ConvolutionFilter

public ConvolutionFilter(float[] filter,
                         int filterWidth,
                         int filterHeight)
Parameters:
filter - The convolution filter that should be applied to each pixel in the input texture.
filterWidth - The width of the convolution filter.
filterHeight - The height of the convolution filter.