1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Fix missing format when writing Algorithm-based objects

Added a writeFormat() method to Algorithm which must be called by the
write() method of derived classes.
This commit is contained in:
mvukad
2016-03-22 15:19:42 -07:00
parent fd1b66b37d
commit 695e33b25b
33 changed files with 47 additions and 1 deletions
+1
View File
@@ -183,6 +183,7 @@ public:
virtual void write(FileStorage& fs) const
{
writeFormat(fs);
fs << "name" << name_
<< "history" << history
<< "nsamples" << nN
+1
View File
@@ -286,6 +286,7 @@ public:
virtual void write(FileStorage& fs) const
{
writeFormat(fs);
fs << "name" << name_
<< "history" << history
<< "nmixtures" << nmixtures