title: OpenCV: Understanding Kernel
body: <p>My book says this about the Image Kernel concept in OpenCV</p>
  
  <blockquote>
    <p>When a computation is done over a pixel neighborhood, it is common to
    represent this with a kernel matrix. This kernel describes how the
    pixels involved in the computation are combined in order to obtain the
    desired result.</p>
  </blockquote>
  
  <p>In image blur techniques, we use the kernel size. </p>
  
  <pre><code>cv::GaussianBlur(inputImage,outputImage,Size(1,1),0,0)
  </code></pre>
  
  <p>So, if I say the kernel size is <code>Size(1,1)</code> does that mean the kernel got only 1 pixel?</p>
  
  <p>Please have a look at the following image</p>
  
  <p><img src="https://i.stack.imgur.com/nxCjv.png" alt="enter image description here"></p>
  
  <p>In here, what's the Kernel size? <code>Size(3,3)</code> ? If I say size <code>Size(1,1)</code> in this image, does that mean the kernel got only 1 pixel and the pixel value is 0 (The first value in the image)?</p>