| FileStorageOpen Method |
operator that performs PCA. The previously stored data, if any, is released
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public virtual bool Open(
string fileName,
FileStorageMode flags,
string encoding = null
)
Public Overridable Function Open (
fileName As String,
flags As FileStorageMode,
Optional encoding As String = Nothing
) As Boolean
public:
virtual bool Open(
String^ fileName,
FileStorageMode flags,
String^ encoding = nullptr
)
abstract Open :
fileName : string *
flags : FileStorageMode *
?encoding : string
(* Defaults:
let _encoding = defaultArg encoding null
*)
-> bool
override Open :
fileName : string *
flags : FileStorageMode *
?encoding : string
(* Defaults:
let _encoding = defaultArg encoding null
*)
-> bool
Parameters
- fileName
- Type: SystemString
Name 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. - flags
- Type: OpenCvSharpFileStorageMode
Mode of operation. - 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.
Return Value
Type:
Boolean[Missing <returns> documentation for "M:OpenCvSharp.FileStorage.Open(System.String,OpenCvSharp.FileStorage.Mode,System.String)"]
See Also