if (((factor < 10.0) && (average < 1000))) {
// image is quite small and suitable factor - use gaussian blur
GaussianFilter gauss = new GaussianFilter();
double radius = Math.sqrt(1.5 * factor);
gauss.setRadius((float)radius);
image = gauss.filter(image, null);
} else {
// image is rather large, use much faster box blur
double root = Math.sqrt(0.75 * factor);
int radius;
if ((factor < 3.5) || (pixel > m_renderSettings.getMaximumBlurSize())) {