) {
threshold = (Integer) attributes.get("threshold");
neighborhood = (Integer) attributes.get("neighborhood");
range = (Integer) attributes.get("range");
MarvinImagePlugin l_filter = new GrayScale();
l_filter.process(imageIn, imageOut, attributesOut, mask, previewMode);
boolean[][] bmask = mask.getMaskArray();
if (neighborhood == -1 && range == -1) {
hardThreshold(imageIn, imageOut, bmask);