project.android.imageprocessing.filter.colour
Class ImageLevelsFilter

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

public class ImageLevelsFilter
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 ImageGammaFilter and should be in [0, 3] for normal use case.

Author:
Chris Batt

Constructor Summary
ImageLevelsFilter(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, getTargets, onDrawFrame, onSurfaceCreated, removeTarget, setRenderSize
 
Methods inherited from class project.android.imageprocessing.GLRenderer
getHeight, getWidth, onPause, onResume, rotateClockwise90Degrees, rotateCounterClockwise90Degrees
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageLevelsFilter

public ImageLevelsFilter(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.