Browse Source

write globfeats

Bjoern Froehlich 13 năm trước cách đây
mục cha
commit
78825388fc
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      semseg/SemSegContextTree.cpp

+ 2 - 1
semseg/SemSegContextTree.cpp

@@ -1972,8 +1972,9 @@ void SemSegContextTree::semanticseg ( CachedExample *ce, NICE::Image & segresult
 
   string orgname = list.back();
 #ifdef WRITEGLOB
-  ofstream outstream("filelist.txt",ofstream::app);
+  outstream = ofstream("filelist.txt",ofstream::app);
   outstream << orgname << ".dat" << endl;
+  oitstream.close();
 #endif
   if ( cndir != "" )
   {