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.