title: Blur an image using 3x3 Gaussian kernel?
body: <p>I want to create a method to blur a 24 bit image using 3x3 Gaussian kernel.</p>
  
  <p>I was given the following things.</p>
  
  <p>The 3x3 Gaussian kernel:   </p>
  
  <p><img src="https://i.stack.imgur.com/YAEQR.png" alt="http://i.stack.imgur.com/YAEQR.png">  </p>
  
  <p>A is the original image and B is the resulting image.  </p>
  
  <pre><code>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)  
  </code></pre>
  
  <p>The method:  </p>
  
  <pre><code>public static BufferedImage gaussianBlur(Image img)
  </code></pre>
  
  <p>where img is a reference variable of an input image.<br>
  The returned value is an address of an object of the resulting image.  </p>
  
  <p>Should I divided the image into 9 parts to implement this method?</p>