From: tbaudier Date: Wed, 25 Jan 2017 11:01:22 +0000 (+0100) Subject: Save correct landmarks coordinates with transformation X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=598f6f384e3a8c26731ec183d9029a455c7a6e55;p=clitk.git Save correct landmarks coordinates with transformation --- diff --git a/vv/vvLandmarks.cxx b/vv/vvLandmarks.cxx index a268683..528669d 100644 --- a/vv/vvLandmarks.cxx +++ b/vv/vvLandmarks.cxx @@ -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"; } }