C# 클래스 OpenCvSharp.FileStorage

XML/YAML File Storage Class.
상속: OpenCvSharp.DisposableCvObject
파일 보기 프로젝트 열기: shimat/opencvsharp 1 사용 예제들

공개 메소드들

메소드 설명
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 ( ) : FileNode

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 ) : FileNode

Returns the top-level mapping. YAML supports multiple streams

Write ( string name, IEnumerable value ) : void

Write ( string name, IEnumerable value ) : void

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, IntPtr obj ) : void

Writes the registered C structure (CvMat, CvMatND, CvSeq). See cvWrite()

WriteRaw ( string fmt, IntPtr vec, long len ) : void

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 ) : FileNode

Returns the specified element of the top-level mapping

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

메소드 상세

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

FileStorage() 공개 메소드

Default constructor. You should call FileStorage::open() after initialization.
public FileStorage ( ) : System
리턴 System

FileStorage() 공개 메소드

The full constructor
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.
리턴 System

GetDefaultObjectName() 공개 정적인 메소드

Returns the normalized object name for the specified file name
public static GetDefaultObjectName ( string fileName ) : string
fileName string
리턴 string

GetFirstTopLevelNode() 공개 메소드

Returns the first element of the top-level mapping
public GetFirstTopLevelNode ( ) : FileNode
리턴 FileNode

IsOpened() 공개 메소드

Returns true if the object is associated with currently opened file.
public IsOpened ( ) : bool
리턴 bool

Open() 공개 메소드

operator that performs PCA. The previously stored data, if any, is released
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.
리턴 bool

Release() 공개 메소드

Closes the file and releases all the memory buffers
public Release ( ) : void
리턴 void

ReleaseAndGetString() 공개 메소드

Closes the file, releases all the memory buffers and returns the text string
public ReleaseAndGetString ( ) : string
리턴 string

Root() 공개 메소드

Returns the top-level mapping. YAML supports multiple streams
public Root ( int streamidx ) : FileNode
streamidx int
리턴 FileNode

Write() 공개 메소드

public Write ( string name, IEnumerable value ) : void
name string
value IEnumerable
리턴 void

Write() 공개 메소드

public Write ( string name, IEnumerable value ) : void
name string
value IEnumerable
리턴 void

Write() 공개 메소드

public Write ( string name, OpenCvSharp.Mat value ) : void
name string
value OpenCvSharp.Mat
리턴 void

Write() 공개 메소드

public Write ( string name, SparseMat value ) : void
name string
value SparseMat
리턴 void

Write() 공개 메소드

public Write ( string name, double value ) : void
name string
value double
리턴 void

Write() 공개 메소드

public Write ( string name, float value ) : void
name string
value float
리턴 void

Write() 공개 메소드

public Write ( string name, int value ) : void
name string
value int
리턴 void

Write() 공개 메소드

public Write ( string name, string value ) : void
name string
value string
리턴 void

WriteObj() 공개 메소드

Writes the registered C structure (CvMat, CvMatND, CvSeq). See cvWrite()
public WriteObj ( string name, IntPtr obj ) : void
name string
obj System.IntPtr
리턴 void

WriteRaw() 공개 메소드

Writes one or more numbers of the specified format to the currently written structure
public WriteRaw ( string fmt, IntPtr vec, long len ) : void
fmt string
vec System.IntPtr
len long
리턴 void

WriteScalar() 공개 메소드

public WriteScalar ( double value ) : void
value double
리턴 void

WriteScalar() 공개 메소드

public WriteScalar ( float value ) : void
value float
리턴 void

WriteScalar() 공개 메소드

public WriteScalar ( int value ) : void
value int
리턴 void

WriteScalar() 공개 메소드

public WriteScalar ( string value ) : void
value string
리턴 void

this() 공개 메소드

Returns the specified element of the top-level mapping
public this ( string nodeName ) : FileNode
nodeName string
리턴 FileNode