// scale factor is rather large, use Math.round() for better result
radius = (int)Math.round(root);
}
BoxBlurFilter blur = new BoxBlurFilter();
blur.setRadius(radius);
image = blur.filter(image, null);
}
}
// create the image scaling transformation
AffineTransform at = AffineTransform.getScaleInstance(widthScale, heightScale);