You can use the XML/YAML file storages provided by the OpenCV class Filestorage.
The question is already answered here.
题
I used this piece of code to write descriptors in a text file , but I dont know how to laod them back in a cv::Mat again, what is the function that does the opposite !!
解决方案
You can use the XML/YAML file storages provided by the OpenCV class Filestorage.
The question is already answered here.