]> Creatis software - clitk.git/commitdiff
Save correct landmarks coordinates with transformation
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 25 Jan 2017 11:01:22 +0000 (12:01 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 25 Jan 2017 11:01:22 +0000 (12:01 +0100)
vv/vvLandmarks.cxx

index a2686835befd9295ce000e89d34c3f6fbdac28e7..528669d0768977144760d2e8e77895087e186f22 100644 (file)
@@ -488,16 +488,16 @@ void vvLandmarks::SaveFile(std::string filename)
       std::stringstream out;
       out.imbue(std::locale("C")); //This is to specify that the dot is to be used as the decimal separator
       out << i << " "
-          << mLandmarks[t][i].coordinates[0] << " "
-          << mLandmarks[t][i].coordinates[1] << " "
-          << mLandmarks[t][i].coordinates[2] << " "
-          << mLandmarks[t][i].coordinates[3] << " "
-          << mLandmarks[t][i].pixel_value << " ";
+          << mLandmarksInitial[t][i].coordinates[0] << " "
+          << mLandmarksInitial[t][i].coordinates[1] << " "
+          << mLandmarksInitial[t][i].coordinates[2] << " "
+          << mLandmarksInitial[t][i].coordinates[3] << " "
+          << mLandmarksInitial[t][i].pixel_value << " ";
       fileContent += out.str();
-      if (mLandmarks[t][i].comments.size() == 0)
+      if (mLandmarksInitial[t][i].comments.size() == 0)
         fileContent += " ";
       else
-        fileContent += mLandmarks[t][i].comments;
+        fileContent += mLandmarksInitial[t][i].comments;
       fileContent += "\n";
     }
   }