Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OK, I figured out myself a small workaround.

According to the code in the cv::PCA, the mean and covariance matrices are public attributes of the class. So I used cv::Mat's ability to read/write to a file, and read/wrote directly to the attributes of my PCA object.

It should do the trick (at least until the attributes get private :-/ ).