filterRegion,
ctx);
// Take the filter primitive region into account, we need to
// pad/crop the input and output.
PadRable pad = new PadRable8Bit(in, primitiveRegion, PadMode.ZERO_PAD);
// build tfilter
Filter morphology
= new MorphologyRable8Bit(pad, radii[0], radii[1], isDilate);
// handle the 'color-interpolation-filters' property
handleColorInterpolationFilters(morphology, filterElement);
PadRable filter = new PadRable8Bit
(morphology, primitiveRegion, PadMode.ZERO_PAD);
// update the filter Map
updateFilterMap(filterElement, filter, filterMap);