X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=tools%2FclitkAffineTransformGenericFilter.h;h=39506326f572a2bb614da44524c64547879eda41;hb=14d6a55438749d14c04f32539b5bc76c6e0b97c8;hp=f990fa585cd920e54a95c2b1d2dd3a9c9389726c;hpb=acf5f5c61b59dbae46e96aeadc9f868608eb30c7;p=clitk.git diff --git a/tools/clitkAffineTransformGenericFilter.h b/tools/clitkAffineTransformGenericFilter.h index f990fa5..3950632 100644 --- a/tools/clitkAffineTransformGenericFilter.h +++ b/tools/clitkAffineTransformGenericFilter.h @@ -87,6 +87,11 @@ namespace clitk //---------------------------------------- void Update(); + template + static + typename itk::Matrix + createMatrixFromElastixFile(std::vector & filename, bool verbose=true); + protected: //---------------------------------------- @@ -103,13 +108,9 @@ namespace clitk template void UpdateWithDimAndPixelType(); template void UpdateWithDimAndVectorType(); - template - typename itk::Matrix - createMatrixFromElastixFile(std::string filename); - - bool GetElastixValueFromTag(std::ifstream & is, std::string tag, std::string & value); - void GetValuesFromValue(const std::string & s, - std::vector & values); + static bool GetElastixValueFromTag(std::ifstream & is, std::string tag, std::string & value); + static void GetValuesFromValue(const std::string & s, + std::vector & values); //---------------------------------------- // Data members