filteredNode,
defaultRegion,
filterRegion,
ctx);
PadRable pad = new PadRable8Bit(in, primitiveRegion, PadMode.ZERO_PAD);
// build the convolve filter
ConvolveMatrixRable convolve = new ConvolveMatrixRable8Bit(pad);
for (int i = 0; i < kernelMatrix.length; i++) {
kernelMatrix[i] /= divisor;
}
convolve.setKernel(new Kernel(orderXY[0], orderXY[1], kernelMatrix));
convolve.setTarget(new Point(targetXY[0], targetXY[1]));
convolve.setBias(bias);
convolve.setEdgeMode(padMode);
convolve.setKernelUnitLength(kernelUnitLength);
convolve.setPreserveAlpha(preserveAlpha);
// handle the 'color-interpolation-filters' property
handleColorInterpolationFilters(convolve, filterElement);
PadRable filter = new PadRable8Bit
(convolve, primitiveRegion, PadMode.ZERO_PAD);
// update the filter Map
updateFilterMap(filterElement, filter, filterMap);