// 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