1 | initial version |
To construct your Mat on vector's data:
Mat fm = Mat(Size(descriptorValues.size(),1), CV_32FC1, (void*)&descriptorsValues[0]);
If fm should live independently of vector also call clone():
Mat fm = Mat(Size(descriptorValues.size(),1), CV_32FC1, (void*)&descriptorsValues[0]).clone();