Bjoern Froehlich 13 lat temu
rodzic
commit
503c3c9986
1 zmienionych plików z 6 dodań i 5 usunięć
  1. 6 5
      semseg/SemSegContextTree.cpp

+ 6 - 5
semseg/SemSegContextTree.cpp

@@ -1977,7 +1977,7 @@ void SemSegContextTree::semanticseg ( CachedExample *ce, NICE::Image & segresult
 #endif
 #endif
   }
   }
 
 
-  cout << forest[0][currentfeats.get ( xpos, ypos, 0 ) ].dist << endl;
+//  cout << forest[0][currentfeats.get ( xpos, ypos, 0 ) ].dist << endl;
 
 
 #ifdef WRITEGLOB
 #ifdef WRITEGLOB
   ofstream outstream("globtest.feat",ofstream::app);
   ofstream outstream("globtest.feat",ofstream::app);
@@ -1986,11 +1986,11 @@ void SemSegContextTree::semanticseg ( CachedExample *ce, NICE::Image & segresult
   outstream.close();
   outstream.close();
 #endif
 #endif
 
 
-  vector<int> useclass ( classes, 1 );
-
   string cndir = conf->gS ( "SSContextTree", "cndir", "" );
   string cndir = conf->gS ( "SSContextTree", "cndir", "" );
-#ifdef WRITEGLOB
   int classes = ( int ) probabilities.numChannels;
   int classes = ( int ) probabilities.numChannels;
+  vector<int> useclass ( classes, 1 );
+#ifdef WRITEGLOB
+  
   
   
   std::vector< std::string > list;
   std::vector< std::string > list;
   StringTools::split ( currentFile, '/', list );
   StringTools::split ( currentFile, '/', list );
@@ -2000,7 +2000,7 @@ void SemSegContextTree::semanticseg ( CachedExample *ce, NICE::Image & segresult
   ofstream ostream("filelist.txt",ofstream::app);
   ofstream ostream("filelist.txt",ofstream::app);
   ostream << orgname << ".dat" << endl;
   ostream << orgname << ".dat" << endl;
   ostream.close();
   ostream.close();
-#endif
+
   if ( cndir != "" )
   if ( cndir != "" )
   {
   {
     useclass = vector<int> ( classes, 0 );
     useclass = vector<int> ( classes, 0 );
@@ -2052,6 +2052,7 @@ void SemSegContextTree::semanticseg ( CachedExample *ce, NICE::Image & segresult
       }
       }
     }
     }
   }
   }
+#endif
   
   
   if ( pixelWiseLabeling )
   if ( pixelWiseLabeling )
   {
   {