// convert mat to vector<float>
vector<float> temp;
img_hog.convertTo(temp, -1, 1, 0);
// convert vector<float> to mat