Method Open
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Open(string, Modes, string?)
operator that performs PCA. The previously stored data, if any, is released
public virtual bool Open(string fileName, FileStorage.Modes flags, string? encoding = null)
Parameters
fileNamestringName of the file to open or the text string to read the data from. Extension of the file (.xml, .yml/.yaml or .json) determines its format (XML, YAML or JSON respectively). Also you can append .gz to work with compressed files, for example myHugeMatrix.xml.gz. If both FileStorage::WRITE and FileStorage::MEMORY flags are specified, source is used just to specify the output file format (e.g. mydata.xml, .yml etc.). A file name can also contain parameters. You can use this format, "*?base64" (e.g. "file.json?base64" (case sensitive)), as an alternative to FileStorage::BASE64 flag.
flagsFileStorage.ModesMode of operation.
encodingstringEncoding of the file. Note that UTF-16 XML encoding is not supported currently and you should use 8-bit encoding instead of it.