title: opencv- Getting std::length_error' what(): vector::_M_fill_insert when computing HOG features from 25*125 eye image
body: <p>When I am calculating the HOG features of eye image of size 25*125. then getting the error message terminate called after throwing an instance of 'std::length_error'
    what():  vector::_M_fill_insert</p>
  
  <pre><code>HOGDescriptor hog;
  vector&lt;float&gt; ders;
  vector&lt;Point&gt;locs;
  hog.compute(img,ders,Size(4,4),Size(0,0),locs);
  Mat Hogfeat;
  Hogfeat.create(ders.size(),1,CV_32FC1);
  
  for(int i=0;i&lt;ders.size();i++)
  {
  Hogfeat.at&lt;float&gt;(i,0)=ders.at(i);
  
  }
  </code></pre>
  
  <p>Can any one tell me the solution?</p>