Commit 54f92013 authored by Gary Bradski's avatar Gary Bradski

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

parent 2799f51b
...@@ -1712,7 +1712,7 @@ void Detector::read(const FileNode& fn) ...@@ -1712,7 +1712,7 @@ void Detector::read(const FileNode& fn)
void Detector::write(FileStorage& fs) const void Detector::write(FileStorage& fs) const
{ {
fs << "pyramid_levels" << pyramid_levels; fs << "pyramid_levels" << pyramid_levels;
fs << "T" << "[:" << T_at_level << "]"; fs << "T" << T_at_level;
fs << "modalities" << "["; fs << "modalities" << "[";
for (int i = 0; i < (int)modalities.size(); ++i) for (int i = 0; i < (int)modalities.size(); ++i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment