Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

no fear, it's possible:

CvANN_MLP mlp ;

mlp.train ( trainingData , trainingClasses );

cv::FileStorage fs("mlp.yml", cv::FileStorage::WRITE); // or xml
mlp.write(*fs, "mlp");

mlp.load("mlp.yml","mlp");

no fear, it's possible:

CvANN_MLP mlp ;

mlp.train ( trainingData , trainingClasses );

cv::FileStorage fs("mlp.yml", cv::FileStorage::WRITE); // or xml
mlp.write(*fs, "mlp");
"mlp"); // don't think too much about the deref, it casts to a FileNode

mlp.load("mlp.yml","mlp");