mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +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:
@@ -1681,6 +1681,7 @@ void DTreesImpl::writeTree( FileStorage& fs, int root ) const
|
||||
|
||||
void DTreesImpl::write( FileStorage& fs ) const
|
||||
{
|
||||
writeFormat(fs);
|
||||
writeParams(fs);
|
||||
writeTree(fs, roots[0]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user