فهرست منبع

write globfeats

Bjoern Froehlich 13 سال پیش
والد
کامیت
78825388fc
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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 != "" )
   {