|
asmlib-opencv
an ASM(Active Shape Model) implementation by C++ & OpenCV
|
Save/Load model to/from a file. More...
#include <modelfile.h>
Public Member Functions | |
| void | writeInt (int i) |
| int | readInt (int &i) |
| void | writeBool (bool b) |
| int | readBool (bool &b) |
| void | writeReal (double d) |
| double | readReal (double &d) |
| void | writePCA (const PCA *p) |
| PCA * | readPCA (PCA *&p) |
| template<class T > | |
| void | writeMat (const Mat_< T > &m) |
| template<class T > | |
| Mat_< T > & | readMat (Mat_< T > &m) |
| void | openFile (const char *fName, const char *mode) |
| void | closeFile () |
| ~ModelFile () | |
Save/Load model to/from a file.
| StatModel::ModelFile::~ModelFile | ( | ) | [inline] |
| void StatModel::ModelFile::closeFile | ( | ) | [inline] |
| void StatModel::ModelFile::openFile | ( | const char * | fName, |
| const char * | mode | ||
| ) | [inline] |
| int StatModel::ModelFile::readBool | ( | bool & | b | ) | [inline] |
| int StatModel::ModelFile::readInt | ( | int & | i | ) | [inline] |
| Mat_<T>& StatModel::ModelFile::readMat | ( | Mat_< T > & | m | ) | [inline] |
| PCA * StatModel::ModelFile::readPCA | ( | PCA *& | p | ) |
| double StatModel::ModelFile::readReal | ( | double & | d | ) | [inline] |
| void StatModel::ModelFile::writeBool | ( | bool | b | ) | [inline] |
| void StatModel::ModelFile::writeInt | ( | int | i | ) | [inline] |
| void StatModel::ModelFile::writeMat | ( | const Mat_< T > & | m | ) | [inline] |
| void StatModel::ModelFile::writePCA | ( | const PCA * | p | ) |
| void StatModel::ModelFile::writeReal | ( | double | d | ) | [inline] |