Bjoern Froehlich 12 years ago
parent
commit
d84f7e3e29
1 changed files with 5 additions and 0 deletions
  1. 5 0
      semseg/SemSegContextTree.cpp

+ 5 - 0
semseg/SemSegContextTree.cpp

@@ -1554,6 +1554,11 @@ void SemSegContextTree::semanticseg (CachedExample *ce, NICE::Image & segresult,
   {
     if(cndir != "")
     {
+      
+      std::vector< std::string > list;
+      StringTools::split (currentFile, '/', list);
+      string orgname = list.back();
+      
       ifstream infile ((cndir + "/" + orgname + ".dat").c_str());
       while (!infile.eof() && infile.good())
       {