List of utility methods to do BufferedImage Sharpen
BufferedImage | sharpen(BufferedImage image) Sharpens an image. Kernel kernel = new Kernel(3, 3, new float[] { -1, -1, -1, -1, 9, -1, -1, -1, -1 }); BufferedImageOp op = new ConvolveOp(kernel); return op.filter(image, null); |
BufferedImage | sharpen(BufferedImage img, BufferedImage dest) sharpen float[] sharpKernel = { 0.0f, -1.0f, 0.0f, -1.0f, 5.0f, -1.0f, 0.0f, -1.0f, 0.0f }; BufferedImageOp sharpen = new ConvolveOp(new Kernel(3, 3, sharpKernel), ConvolveOp.EDGE_NO_OP, null); return sharpen.filter(img, dest); |
BufferedImage | sharpen(final BufferedImage image) sharpen float[] elements = { 0.0f, -1.0f, 0.0f, -1.0f, 5.f, -1.0f, 0.0f, -1.0f, 0.0f }; return convolve(image, elements, 3, 3); |
ConvolveOp | sharpenOp() sharpen Op float[] sharpenMatrix = { 0.0f, -1.0f, 0.0f, -1.0f, 5.0f, -1.0f, 0.0f, -1.0f, 0.0f }; return new ConvolveOp(new Kernel(3, 3, sharpenMatrix), ConvolveOp.EDGE_NO_OP, null); |