title: OpenCV Error: Assertion failed (ksize.width > ...... for GaussianBlur
body: <p>when I call Imgproc.GaussianBlur(dst, dst ,new Size(3,3),1); in my application it works perfectly fine. As soon as I increase the kernel size to new Size(4,4) or else I get an</p>
  
  <blockquote>
  <pre><code>OpenCV Error: Assertion failed (ksize.width &gt; 0 &amp;&amp; ksize.width % 2 == 1 &amp;&amp; ksize.height &gt; 0 &amp;&amp; ksize.height % 2 == 1) in cv::createGaussianFilter, file
  </code></pre>
    
    <p>........\opencv\modules\imgproc\src\smooth.cpp, line 816
        Caused by: CvException [org.opencv.core.CvException: cv::Exception: ........\opencv\modules\imgproc\src\smooth.cpp:816:
    error: (-215) ksize.width > 0 &amp;&amp; ksize.width % 2 == 1 &amp;&amp; ksize.height</p>
    
    <blockquote>
      <p>0 &amp;&amp; ksize.height % 2 == 1 in function cv::createGaussianFilter
          ]
            at org.opencv.imgproc.Imgproc.GaussianBlur_1(Native Method)
            at org.opencv.imgproc.Imgproc.GaussianBlur(Imgproc.java:533)</p>
    </blockquote>
  </blockquote>
  
  <p>Can please someone put me on the right track for this? I have no idea where/what to look for this.</p>
  
  <p>Thx.</p>