XML/YAML/JSON PersistenceCore functionality
Detailed Description
Writing to a file storage.
You can store and then restore various OpenCV data structures to/from XML (http://www.w3c.org/XML), YAML (http://www.yaml.org) or JSON (http://www.json.org/) formats. Also, it is possible to store and load arbitrarily complex data structures, which include OpenCV data structures, as well as primitive data types (integer and floating-point numbers and text strings) as their elements.
Use the following procedure to write something to XML, YAML or JSON:
- Create new and open it for writing. It can be done with a single call to constructor that takes a filename, or you can use the default constructor and then call . Format of the file (XML, YAML or JSON) is determined from the filename extension (".xml", ".yml"/".yaml" and ".json", respectively)