mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43: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:
@@ -342,6 +342,7 @@ public:
|
||||
{
|
||||
int nclasses = (int)cls_labels.total(), i;
|
||||
|
||||
writeFormat(fs);
|
||||
fs << "var_count" << (var_idx.empty() ? nallvars : (int)var_idx.total());
|
||||
fs << "var_all" << nallvars;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user