title: Why am i getting this OpenCV error Assertion Failed?
body: <p>Here is the code :</p>
  
  <pre><code>Mat _orange = imread("orange.jpg");
  Mat_&lt;Vec3f&gt; orange;
  _orange.convertTo(orange, orange.type(), 1.0/255.0);
  </code></pre>
  
  <p>The <code>_orange.convertTo(orange, orange.type(), 1.0/255.0);</code> part causes the error.</p>
  
  <p>Here is the error message:</p>
  
  <p>OpenCV Error: Assertion failed (!fixedType() || ((Mat*)obj)->type() == mtype) in unknown function.</p>
  
  <p>PS:
  I am using Visual Studio 2012 and OpenCV 2.4.4</p>