Class ConvolveMatrixRable8Bit
java.lang.Object
org.apache.batik.ext.awt.image.renderable.AbstractRable
org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
org.apache.batik.ext.awt.image.renderable.ConvolveMatrixRable8Bit
- All Implemented Interfaces:
RenderableImage, ConvolveMatrixRable, Filter, FilterColorInterpolation
public class ConvolveMatrixRable8Bit
extends AbstractColorInterpolationRable
implements ConvolveMatrixRable
Convolves an image with a convolution matrix.
Known limitations:
Does not support bias other than zero - pending 16bit pathway
Does not support edgeMode="wrap" - pending Tile code.
-
Field Summary
Fields inherited from class AbstractColorInterpolationRable
csLinearFields inherited from class AbstractRable
props, srcs, stampFields inherited from interface RenderableImage
HINTS_OBSERVED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoiddoublegetBias()Returns the shift value to apply to the result of convolutionReturns the current edge handling mode.Returns the Convolution Kernel in usedouble[]Returns the [x,y] distance in user space between kernel valuesbooleanReturns false if the convolution should affect the Alpha channelReturns the source to be ConvolvedReturns the target point of the kernel (what pixel under the kernel should be set to the result of convolution).voidsetBias(double bias) Returns the shift value to apply to the result of convolutionvoidsetEdgeMode(PadMode edgeMode) Sets the current edge handling mode.voidSets the Convolution Kernel to use.voidsetKernelUnitLength(double[] kernelUnitLength) Sets the [x,y] distance in user space between kernel values If set to zero then device space will be used.voidsetPreserveAlpha(boolean preserveAlpha) Sets Alpha channel handling.voidSets the source to be ConvolvedvoidSets the target point of the kernel (what pixel under the kernel should be set to the result of the convolution).Methods inherited from class AbstractColorInterpolationRable
convertSourceCS, convertSourceCS, getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinearMethods inherited from class AbstractRable
createDefaultRendering, createScaledRendering, getBounds2D, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touchMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Filter
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStampMethods inherited from interface FilterColorInterpolation
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinearMethods inherited from interface RenderableImage
createDefaultRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth, isDynamic
-
Constructor Details
-
ConvolveMatrixRable8Bit
-
-
Method Details
-
getSource
Description copied from interface:ConvolveMatrixRableReturns the source to be Convolved- Specified by:
getSourcein interfaceConvolveMatrixRable
-
setSource
Description copied from interface:ConvolveMatrixRableSets the source to be Convolved- Specified by:
setSourcein interfaceConvolveMatrixRable- Parameters:
src- image to Convolved.
-
getKernel
Returns the Convolution Kernel in use- Specified by:
getKernelin interfaceConvolveMatrixRable
-
setKernel
Sets the Convolution Kernel to use.- Specified by:
setKernelin interfaceConvolveMatrixRable- Parameters:
k- Kernel to use for convolution.
-
getTarget
Description copied from interface:ConvolveMatrixRableReturns the target point of the kernel (what pixel under the kernel should be set to the result of convolution).- Specified by:
getTargetin interfaceConvolveMatrixRable
-
setTarget
Description copied from interface:ConvolveMatrixRableSets the target point of the kernel (what pixel under the kernel should be set to the result of the convolution).- Specified by:
setTargetin interfaceConvolveMatrixRable
-
getBias
public double getBias()Returns the shift value to apply to the result of convolution- Specified by:
getBiasin interfaceConvolveMatrixRable
-
setBias
public void setBias(double bias) Returns the shift value to apply to the result of convolution- Specified by:
setBiasin interfaceConvolveMatrixRable
-
getEdgeMode
Returns the current edge handling mode.- Specified by:
getEdgeModein interfaceConvolveMatrixRable
-
setEdgeMode
Sets the current edge handling mode.- Specified by:
setEdgeModein interfaceConvolveMatrixRable
-
getKernelUnitLength
public double[] getKernelUnitLength()Returns the [x,y] distance in user space between kernel values- Specified by:
getKernelUnitLengthin interfaceConvolveMatrixRable
-
setKernelUnitLength
public void setKernelUnitLength(double[] kernelUnitLength) Sets the [x,y] distance in user space between kernel values If set to zero then device space will be used.- Specified by:
setKernelUnitLengthin interfaceConvolveMatrixRable
-
getPreserveAlpha
public boolean getPreserveAlpha()Returns false if the convolution should affect the Alpha channel- Specified by:
getPreserveAlphain interfaceConvolveMatrixRable
-
setPreserveAlpha
public void setPreserveAlpha(boolean preserveAlpha) Sets Alpha channel handling. A value of False indicates that the convolution should apply to the Alpha Channel- Specified by:
setPreserveAlphain interfaceConvolveMatrixRable
-
fixAlpha
-
fixAlpha_INT_PACK
-
fixAlpha_FALLBACK
-
createRendering
- Specified by:
createRenderingin interfaceRenderableImage
-