I am trying to blur a buffered image, so I created a kernel to blur the image, but I keep getting the same image back over and over.
public void blur (BufferedImage image)
{
BufferedImage destImage = null;
float[] matrix = new float[16000];
for (int i = 0; i < 16000; i++)
matrix[i] = 1.0f/16000.0f;
BufferedImageOp pic = new ConvolveOp( new Kernel(10,10, matrix));
BufferedImage finalBlurImage = pic.filter(image, destImage);
}
}
save("image.jpg");
}
Is there something wrong with my logic?
I've imported all the right libraries and checked out javadocs to make sure I wrote everything correctly.
Any suggestion is appreciated.

New Topic/Question
Reply



MultiQuote




|