Method | Description | |
---|---|---|
FileStorage ( ) : System |
Default constructor. You should call FileStorage::open() after initialization.
|
|
FileStorage ( string source, Mode flags, string encoding = null ) : System |
The full constructor
|
|
GetDefaultObjectName ( string fileName ) : string |
Returns the normalized object name for the specified file name
|
|
GetFirstTopLevelNode ( ) : |
Returns the first element of the top-level mapping
|
|
IsOpened ( ) : bool |
Returns true if the object is associated with currently opened file.
|
|
Open ( string fileName, Mode flags, string encoding = null ) : bool |
operator that performs PCA. The previously stored data, if any, is released
|
|
Release ( ) : void |
Closes the file and releases all the memory buffers
|
|
ReleaseAndGetString ( ) : string |
Closes the file, releases all the memory buffers and returns the text string
|
|
Root ( int streamidx ) : |
Returns the top-level mapping. YAML supports multiple streams
|
|
Write ( string name, IEnumerable |
|
|
Write ( string name, IEnumerable |
|
|
Write ( string name, OpenCvSharp.Mat value ) : void |
|
|
Write ( string name, SparseMat value ) : void |
|
|
Write ( string name, double value ) : void |
|
|
Write ( string name, float value ) : void |
|
|
Write ( string name, int value ) : void |
|
|
Write ( string name, string value ) : void |
|
|
WriteObj ( string name, |
Writes the registered C structure (CvMat, CvMatND, CvSeq). See cvWrite()
|
|
WriteRaw ( string fmt, |
Writes one or more numbers of the specified format to the currently written structure
|
|
WriteScalar ( double value ) : void |
|
|
WriteScalar ( float value ) : void |
|
|
WriteScalar ( int value ) : void |
|
|
WriteScalar ( string value ) : void |
|
|
this ( string nodeName ) : |
Returns the specified element of the top-level mapping
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
|
public FileStorage ( string source, Mode flags, string encoding = null ) : System | ||
source | string | 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 | Mode | |
encoding | string | 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 | System |
public static GetDefaultObjectName ( string fileName ) : string | ||
fileName | string | |
return | string |
public Open ( string fileName, Mode flags, string encoding = null ) : bool | ||
fileName | string | |
flags | Mode | |
encoding | string | 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 | bool |
public Write ( string name, IEnumerable |
||
name | string | |
value | IEnumerable |
|
return | void |
public Write ( string name, IEnumerable |
||
name | string | |
value | IEnumerable |
|
return | void |
public Write ( string name, OpenCvSharp.Mat value ) : void | ||
name | string | |
value | OpenCvSharp.Mat | |
return | void |
public Write ( string name, SparseMat value ) : void | ||
name | string | |
value | SparseMat | |
return | void |
public Write ( string name, double value ) : void | ||
name | string | |
value | double | |
return | void |
public Write ( string name, float value ) : void | ||
name | string | |
value | float | |
return | void |
public Write ( string name, int value ) : void | ||
name | string | |
value | int | |
return | void |
public Write ( string name, string value ) : void | ||
name | string | |
value | string | |
return | void |
public WriteObj ( string name, |
||
name | string | |
obj | ||
return | void |
public WriteRaw ( string fmt, |
||
fmt | string | |
vec | ||
len | long | |
return | void |