I am trying to make a 2d vector of float vectors which contain HOG descriptors vectors of images of 285, but as i keep adding the vectors in the 2d vectors, it throws an exception after 155th to 156th image, can anyone please help me out in this? as i need to convert this 2d vector to mat for training a classifier within tonight.