Interface ConvolveMatrixRable
-
- All Superinterfaces:
Filter
,FilterColorInterpolation
,java.awt.image.renderable.RenderableImage
- All Known Implementing Classes:
ConvolveMatrixRable8Bit
public interface ConvolveMatrixRable extends FilterColorInterpolation
Convolves an image with a convolution matrix.- Version:
- $Id: ConvolveMatrixRable.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getBias()
Returns the shift value to apply to the result of convolutionPadMode
getEdgeMode()
Returns the current edge handling mode.java.awt.image.Kernel
getKernel()
Returns the Convolution Kernel in usedouble[]
getKernelUnitLength()
Returns the [x,y] distance in user space between kernel valuesboolean
getPreserveAlpha()
Returns false if the convolution should affect the Alpha channelFilter
getSource()
Returns the source to be Convolvedjava.awt.Point
getTarget()
Returns the target point of the kernel (what pixel under the kernel should be set to the result of convolution).void
setBias(double bias)
Sets the shift value to apply to the result of convolutionvoid
setEdgeMode(PadMode edgeMode)
Sets the current edge handling mode.void
setKernel(java.awt.image.Kernel k)
Sets the Convolution Kernel to use.void
setKernelUnitLength(double[] kernelUnitLength)
Sets the [x,y] distance in user space between kernel values If set to zero then one pixel in device space will be used.void
setPreserveAlpha(boolean preserveAlpha)
Sets Alpha channel handling.void
setSource(Filter src)
Sets the source to be Convolvedvoid
setTarget(java.awt.Point pt)
Sets the target point of the kernel (what pixel under the kernel should be set to the result of the convolution).-
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.Filter
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStamp
-
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.FilterColorInterpolation
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
-
-
-
-
Method Detail
-
getSource
Filter getSource()
Returns the source to be Convolved
-
setSource
void setSource(Filter src)
Sets the source to be Convolved- Parameters:
src
- image to Convolved.
-
getKernel
java.awt.image.Kernel getKernel()
Returns the Convolution Kernel in use
-
setKernel
void setKernel(java.awt.image.Kernel k)
Sets the Convolution Kernel to use.- Parameters:
k
- Kernel to use for convolution.
-
getTarget
java.awt.Point getTarget()
Returns the target point of the kernel (what pixel under the kernel should be set to the result of convolution).
-
setTarget
void setTarget(java.awt.Point pt)
Sets the target point of the kernel (what pixel under the kernel should be set to the result of the convolution).
-
getBias
double getBias()
Returns the shift value to apply to the result of convolution
-
setBias
void setBias(double bias)
Sets the shift value to apply to the result of convolution
-
getEdgeMode
PadMode getEdgeMode()
Returns the current edge handling mode.
-
setEdgeMode
void setEdgeMode(PadMode edgeMode)
Sets the current edge handling mode.
-
getKernelUnitLength
double[] getKernelUnitLength()
Returns the [x,y] distance in user space between kernel values
-
setKernelUnitLength
void setKernelUnitLength(double[] kernelUnitLength)
Sets the [x,y] distance in user space between kernel values If set to zero then one pixel in device space will be used.
-
getPreserveAlpha
boolean getPreserveAlpha()
Returns false if the convolution should affect the Alpha channel
-
setPreserveAlpha
void setPreserveAlpha(boolean preserveAlpha)
Sets Alpha channel handling. A value of False indicates that the convolution should apply to the Alpha Channel
-
-