XML/YAML File Storage Class.
Inheritance Hierarchy
OpenCvSharpDisposableObject
OpenCvSharpDisposableCvObject
OpenCvSharp.CPlusPlusFileStorage
Namespace: OpenCvSharp.CPlusPlus
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The FileStorage type exposes the following members.
Constructors
Name | Description | |
---|---|---|
FileStorage |
Default constructor.
You should call FileStorage::open() after initialization.
| |
FileStorage(String, FileStorageMode, String) |
The full constructor
|
Properties
Name | Description | |
---|---|---|
AllocatedMemory |
Gets or sets a memory address allocated by AllocMemory.
(Inherited from DisposableObject.) | |
AllocatedMemorySize |
Gets or sets the byte length of the allocated memory
(Inherited from DisposableObject.) | |
CvPtr |
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.) | |
ElName |
the currently written element
| |
IsDisposed |
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.) | |
IsEnabledDispose |
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.) | |
Item |
Returns the specified element of the top-level mapping
| |
State |
the writer state
| |
Structs |
the stack of written structures
|
Methods
Name | Description | |
---|---|---|
AllocGCHandle |
Pins the object to be allocated by cvSetData.
(Inherited from DisposableObject.) | |
AllocMemory |
Allocates the specified size of memory.
(Inherited from DisposableObject.) | |
Dispose |
Releases the resources
(Inherited from DisposableObject.) | |
Dispose(Boolean) | Releases the unmanaged resources used by the FileStorage and optionally releases the managed resources (Overrides DisposableCvObjectDispose(Boolean).) | |
Equals | (Inherited from Object.) | |
Finalize |
Destructor
(Inherited from DisposableObject.) | |
GetDefaultObjectName |
Returns the normalized object name for the specified file name
| |
GetFirstTopLevelNode |
Returns the first element of the top-level mapping
| |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IsOpened |
Returns true if the object is associated with currently opened file.
| |
MemberwiseClone | (Inherited from Object.) | |
NotifyMemoryPressure |
Notifies the allocated size of memory.
(Inherited from DisposableObject.) | |
Open |
operator that performs PCA. The previously stored data, if any, is released
| |
Release |
Closes the file and releases all the memory buffers
| |
ReleaseAndGetString |
Closes the file, releases all the memory buffers and returns the text string
| |
Root |
Returns the top-level mapping. YAML supports multiple streams
| |
ThrowIfDisposed |
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.) | |
ToLegacy |
Returns pointer to the underlying C FileStorage structure
| |
ToString | (Inherited from Object.) | |
Write(String, Mat) | ||
Write(String, SparseMat) | ||
Write(String, IEnumerableKeyPoint) | ||
Write(String, Double) | ||
Write(String, Int32) | ||
Write(String, Single) | ||
Write(String, String) | ||
WriteObj |
Writes the registered C structure (CvMat, CvMatND, CvSeq). See cvWrite()
| |
WriteRaw |
Writes one or more numbers of the specified format to the currently written structure
| |
WriteScalar(Double) | ||
WriteScalar(Int32) | ||
WriteScalar(Single) | ||
WriteScalar(String) |
Operators
Name | Description | |
---|---|---|
(FileStorage to CvFileStorage) |
Returns pointer to the underlying C FileStorage structure
|
Fields
Name | Description | |
---|---|---|
dataHandle |
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.) | |
ptr |
Data pointer
(Inherited from DisposableCvObject.) |
See Also