Bjoern Froehlich 12 gadi atpakaļ
vecāks
revīzija
d84f7e3e29
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  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 != "")
     if(cndir != "")
     {
     {
+      
+      std::vector< std::string > list;
+      StringTools::split (currentFile, '/', list);
+      string orgname = list.back();
+      
       ifstream infile ((cndir + "/" + orgname + ".dat").c_str());
       ifstream infile ((cndir + "/" + orgname + ".dat").c_str());
       while (!infile.eof() && infile.good())
       while (!infile.eof() && infile.good())
       {
       {