title: Opencv assertion fail mat.hpp line 416
body: <p>I am getting this error at this point of the code:</p>
  
  <pre><code>matcher.match(descriptors, possible_planes_it-&gt;back().getDescriptor(), matches);
  </code></pre>
  
  <p>However this statement is within a for loop and got executed around 30 times before it crashes. </p>
  
  <p>The exact meassage is:</p>
  
  <p>First: 
  <a href="http://www.pic-upload.de/view-21954202/Unbenannt.jpg.html" rel="nofollow">http://www.pic-upload.de/view-21954202/Unbenannt.jpg.html</a></p>
  
  <p>Cmd output:</p>
  
  <pre><code>OpenCV Error: Assertion failed (y == 0 || (data &amp;&amp; dims &gt;= 1 &amp;&amp; (unsigned)y &lt; (unsigned)size.p[0])) in cv::Mat::ptr, file C:..../core/mat.hpp, line 416
  </code></pre>
  
  <p>How can I find out if something is wrong with the descriptors, which obviously must cause this error, or am I completely wrong? Checking if the descriptors are empty or things like that did not help.</p>