FileStorage Constructor (String, FileStorageMode, String)
|
The full constructor
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic FileStorage(
string source,
FileStorageMode flags,
string encoding = null
)
Public Sub New (
source As String,
flags As FileStorageMode,
Optional encoding As String = Nothing
)
public:
FileStorage(
String^ source,
FileStorageMode flags,
String^ encoding = nullptr
)
new :
source : string *
flags : FileStorageMode *
?encoding : string
(* Defaults:
let _encoding = defaultArg encoding null
*)
-> FileStorage
OpenCvSharp.FileStorage = function(source, flags, encoding);
Parameters
- source
- Type: SystemString
Name of the file to open or the text string to read the data from.
Extension of the file (.xml or .yml/.yaml) determines its format
(XML or YAML 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.). - flags
- Type: OpenCvSharpFileStorageMode
- encoding (Optional)
- Type: SystemString
Encoding of the file. Note that UTF-16 XML encoding is not supported
currently and you should use 8-bit encoding instead of it.
See Also