public class ConvolutionFilter extends Object implements IDataType
The convolution is applied on each of the RGBA color components and then saturated, except when the PreserveAlpha flag is set; in this case, the alpha channel value is not modified.
The clamping flag specifies how pixels outside of the input pixel plane are handled. If set to false, the DefaultColor value is used, and otherwise, the pixel is clamped to the closest valid input pixel.
Constructor and Description |
---|
ConvolutionFilter() |
Modifier and Type | Method and Description |
---|---|
float |
getBias() |
RGBA |
getDefaultColor() |
float |
getDivisor() |
float[] |
getMatrix() |
int |
getMatrixX() |
int |
getMatrixY() |
boolean |
isClamp() |
boolean |
isPreserveAlpha() |
void |
setBias(float bias) |
void |
setClamp(boolean clamp) |
void |
setDefaultColor(RGBA defaultColor) |
void |
setDivisor(float divisor) |
void |
setMatrix(float[] matrix) |
void |
setMatrixX(int matrixX) |
void |
setMatrixY(int matrixY) |
void |
setPreserveAlpha(boolean preserveAlpha) |
public int getMatrixX()
public void setMatrixX(int matrixX)
matrixX
- the matrixX to setpublic int getMatrixY()
public void setMatrixY(int matrixY)
matrixY
- the matrixY to setpublic float getDivisor()
public void setDivisor(float divisor)
divisor
- the divisor to setpublic float getBias()
public void setBias(float bias)
bias
- the bias to setpublic float[] getMatrix()
public void setMatrix(float[] matrix)
matrix
- the matrix to setpublic RGBA getDefaultColor()
public void setDefaultColor(RGBA defaultColor)
defaultColor
- the defaultColor to setpublic boolean isClamp()
public void setClamp(boolean clamp)
clamp
- the clamp to setpublic boolean isPreserveAlpha()
public void setPreserveAlpha(boolean preserveAlpha)
preserveAlpha
- the preserveAlpha to setCopyright © 2016 The Apache Software Foundation. All rights reserved.