project.android.imageprocessing.filter.effect
Class MosaicFilter

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.MultiInputFilter
                  extended by project.android.imageprocessing.filter.colour.LookupFilter
                      extended by project.android.imageprocessing.filter.effect.MosaicFilter
All Implemented Interfaces:
GLTextureInputRenderer

public class MosaicFilter
extends LookupFilter

This filter takes an input tileset, the tiles must ascend in luminance. It looks at the input image and replaces each display tile with an input tile according to the luminance of that tile. The idea was to replicate the ASCII video filters seen in other apps, but the tileset can be anything. inputTileSize: the size of the tiles in the input image numTiles: the number of tiles in the input image (must be square?) displayTileSize: the size of the tiles that will be displayed in the mosaic output colorOn: whether or not to use the input colour or the input tile colour.

Author:
Chris Batt

Field Summary
 
Fields inherited from class project.android.imageprocessing.GLRenderer
ATTRIBUTE_POSITION, ATTRIBUTE_TEXCOORD, UNIFORM_TEXTURE0, VARYING_TEXCOORD
 
Constructor Summary
MosaicFilter(android.content.Context context, int id, android.graphics.PointF inputTileSize, android.graphics.PointF displayTileSize, int numOfTiles, boolean color)
           
 
Method Summary
 
Methods inherited from class project.android.imageprocessing.filter.colour.LookupFilter
destroy, newTextureReady
 
Methods inherited from class project.android.imageprocessing.filter.MultiInputFilter
clearRegisteredFilterLocations, registerFilterLocation, registerFilterLocation
 
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, setRenderSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MosaicFilter

public MosaicFilter(android.content.Context context,
                    int id,
                    android.graphics.PointF inputTileSize,
                    android.graphics.PointF displayTileSize,
                    int numOfTiles,
                    boolean color)