project.android.imageprocessing.filter.effect
Class SmoothToonFilter

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.GroupFilter
                  extended by project.android.imageprocessing.filter.effect.SmoothToonFilter
All Implemented Interfaces:
GLTextureInputRenderer

public class SmoothToonFilter
extends GroupFilter

This uses a similar process as the GPUImageToonFilter, only it precedes the toon effect with a Gaussian blur to smooth out noise. blurSize: A multiplier for the prepass blur size, ranging from 0.0 on up threshold: The sensitivity of the edge detection, with lower values being more sensitive. Ranges from 0.0 to 1.0 quantizationLevels: The number of color levels to represent in the final image.

Author:
Chris Batt

Field Summary
 
Fields inherited from class project.android.imageprocessing.GLRenderer
ATTRIBUTE_POSITION, ATTRIBUTE_TEXCOORD, UNIFORM_TEXTURE0, VARYING_TEXCOORD
 
Constructor Summary
SmoothToonFilter(float blurSize, float threshold, float quantizationLevels)
           
 
Method Summary
 
Methods inherited from class project.android.imageprocessing.filter.GroupFilter
destroy, newTextureReady, setRenderSize
 
Methods inherited from class project.android.imageprocessing.input.GLTextureOutputRenderer
addTarget, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmoothToonFilter

public SmoothToonFilter(float blurSize,
                        float threshold,
                        float quantizationLevels)