瀏覽代碼

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 != "" )
   {