fix to Detector::write so that it doesn't abort on read

This commit is contained in:
Gary Bradski 2012-04-27 04:05:33 +00:00
parent 2799f51bf9
commit 54f92013b0

View File

@ -1712,7 +1712,7 @@ void Detector::read(const FileNode& fn)
void Detector::write(FileStorage& fs) const
{
fs << "pyramid_levels" << pyramid_levels;
fs << "T" << "[:" << T_at_level << "]";
fs << "T" << T_at_level;
fs << "modalities" << "[";
for (int i = 0; i < (int)modalities.size(); ++i)