I want to create a method to blur a 24 bit image using 3x3 Gaussian kernel.
I was given the following things.
The 3x3 Gaussian kernel:
A is the original image and B is the resulting image.
B(i,j) =
1/16 * A(i-1,j-1) +1/8 * A(i,j-1) +1/16 * A(i+1,j-1) +1/8 * A(i-1,j) +1/4 * A(i,j) +1/8 *A(i+1,j) +1/16 * A(i-1,j+1) +1/8 * A(i,j+1) +1/16 * A(i+1,j+1)
The method:
public static BufferedImage gaussianBlur(Image img)
where img is a reference variable of an input image.
The returned value is an address of an object of the resulting image.
Should I divided the image into 9 parts to implement this method?