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
HOGDescriptor hog;
vector<float> ders;
vector<Point>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<ders.size();i++)
{
Hogfeat.at<float>(i,0)=ders.at(i);
}
Can any one tell me the solution?