Przeglądaj źródła

write globfeats

Bjoern Froehlich 13 lat temu
rodzic
commit
4feaa2dd5b
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      semseg/SemSegContextTree.cpp

+ 4 - 2
semseg/SemSegContextTree.cpp

@@ -1971,10 +1971,12 @@ void SemSegContextTree::semanticseg ( CachedExample *ce, NICE::Image & segresult
   StringTools::split ( currentFile, '/', list );
 
   string orgname = list.back();
+#ifdef WRITEGLOB
+  ofstream outstream("filelist.txt",ofstream::app);
+  outstream << orgname << ".dat" << endl;
+#endif
   if ( cndir != "" )
   {
-    ofstream outstream("filelist.txt",ofstream::app);
-    outstream << orgname << ".dat" << endl;
     useclass = vector<int> ( classes, 0 );
     ifstream infile ( ( cndir + "/" + orgname + ".dat" ).c_str() );
     while ( !infile.eof() && infile.good() )