project.android.imageprocessing.filter.colour
Class LevelsFilter
java.lang.Object
project.android.imageprocessing.GLRenderer
project.android.imageprocessing.input.GLTextureOutputRenderer
project.android.imageprocessing.filter.BasicFilter
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
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. |
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 |
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.