Java Utililty Methods BufferedImage Blur

List of utility methods to do BufferedImage Blur

Description

The list of methods to do BufferedImage Blur are organized into topic(s).

Method

BufferedImageapplySimpleBoxBlur(final BufferedImage sourceImage)
Applies the operation returned by createSimpleBoxBlurFilter() to the given image and returns the modified version.
final BufferedImage image = new BufferedImage(sourceImage.getWidth(), sourceImage.getHeight(),
        sourceImage.getType());
final Graphics2D graphics2D = image.createGraphics();
graphics2D.drawImage(sourceImage, createSimpleBoxBlurFilter(), 0, 0);
graphics2D.dispose();
return image;
BufferedImagegenerateBlurImage(BufferedImage image)
Generate Blur Image.
float[] blurelement = { 1f / 9f, 1f / 9f, 1f / 9f, 1f / 9f, 1f / 7f, 1f / 9f, 1f / 9f, 1f / 9f, 1f / 9f 
};
Kernel blurKernel = new Kernel(3, 3, blurelement);
ConvolveOp simpleBlur = new ConvolveOp(blurKernel, ConvolveOp.EDGE_NO_OP, null);
image = simpleBlur.filter(image, null); 
return image;