소스 검색

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