project.android.imageprocessing.filter.colour
Class LevelsFilter

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

public class LevelsFilter
extends BasicFilter

A image levels filter extension of BasicFilter. This filter works like the levels filter in photoshop and can be use to adjust histographs as well as gamma levels. Values for min and max levels of both input and output should be in [0, 1]. The gamma value works like the GammaFilter and should be in [0, 3] for normal use case.

Author:
Chris Batt

Field Summary
 
Fields inherited from class project.android.imageprocessing.GLRenderer
ATTRIBUTE_POSITION, ATTRIBUTE_TEXCOORD, UNIFORM_TEXTURE0, VARYING_TEXCOORD
 
Constructor Summary
LevelsFilter(float minIn, float maxIn, float gamma, float minOut, float maxOut)
          Creates a ImageLevelsFilter with the given min, gamma, max input levels and min and max output levels.
 
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

LevelsFilter

public LevelsFilter(float minIn,
                    float maxIn,
                    float gamma,
                    float minOut,
                    float maxOut)
Creates a ImageLevelsFilter with the given min, gamma, max input levels and min and max output levels.

Parameters:
minIn - The minimum level of the input image.
maxIn - The maximum level of the input image.
gamma - The gamma adjust value.
minOut - The minimum level of the output image.
maxOut - The maximum level of the output image.