title: Exception thrown when stitching together two images using OpenCV
body: <p>I am stitching two images together using <code>opencv-2.4.9</code> with Java in Eclipse. My code throws the following exception from <code>warpPerspective()</code>:</p>
  
  <pre><code>OpenCV Error: Assertion failed ((M0.type() == CV_32F || M0.type() == CV_64F) &amp;&amp; M0.rows == 3 &amp;&amp; M0.cols == 3) in warpPerspective
  </code></pre>
  
  <p><code>warpPerspective</code> method call:</p>
  
  <pre><code>Imgproc.warpPerspective(hsv, result, homoghraphy,
                          new Size(2 * input.cols(), input1.rows)) 
  </code></pre>
  
  <p>Type Of Homgraphy Matrix is:</p>
  
  <pre><code>scene = Mat [ 3*3*CV_32FC2,
                isCont = true,
                isSubmat = false,
                nativeObj = 0x7f32a0130160,
                dataAddr = 0x7f32a01301e0 ]
  </code></pre>
  
  <p>Could someone please explain why this exception is being thrown?</p>