project.android.imageprocessing.filter.effect
Class MosaicFilter
java.lang.Object
project.android.imageprocessing.GLRenderer
project.android.imageprocessing.input.GLTextureOutputRenderer
project.android.imageprocessing.filter.BasicFilter
project.android.imageprocessing.filter.MultiInputFilter
project.android.imageprocessing.filter.colour.LookupFilter
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
Constructor Summary |
MosaicFilter(android.content.Context context,
int id,
android.graphics.PointF inputTileSize,
android.graphics.PointF displayTileSize,
int numOfTiles,
boolean color)
|
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 |
MosaicFilter
public MosaicFilter(android.content.Context context,
int id,
android.graphics.PointF inputTileSize,
android.graphics.PointF displayTileSize,
int numOfTiles,
boolean color)