Direct Graphical Models  v.1.7.0
DirectGraphicalModels::Serialize Namespace Reference

OpenCV Mat Serialization class. More...

Functions

void to (const std::string &fileName, const Mat &m)
 Saves matrix m into the file fileName. More...
 
Mat from (const std::string &fileName)
 Loads the matrix from file filename. More...
 

Detailed Description

OpenCV Mat Serialization class.

Author
Sergey G. Kosov, serge.nosp@m.y.ko.nosp@m.sov@p.nosp@m.roje.nosp@m.ct-10.nosp@m..de

Function Documentation

◆ from()

Mat DirectGraphicalModels::Serialize::from ( const std::string &  fileName)

Loads the matrix from file filename.

Parameters
fileNameThe full path to the source file

Definition at line 59 of file serialize.h.

◆ to()

void DirectGraphicalModels::Serialize::to ( const std::string &  fileName,
const Mat &  m 
)

Saves matrix m into the file fileName.

Parameters
fileNameThe full path to the destination file
mMatrix to be saved

Definition at line 22 of file serialize.h.