X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkAffineTransformGenericFilter.h;h=39506326f572a2bb614da44524c64547879eda41;hb=14d6a55438749d14c04f32539b5bc76c6e0b97c8;hp=2be7ec6004721f22cafa3a56f0c83175239e140d;hpb=931a42358442f4ee4f314613c991c838d4b4e3b7;p=clitk.git diff --git a/tools/clitkAffineTransformGenericFilter.h b/tools/clitkAffineTransformGenericFilter.h index 2be7ec6..3950632 100644 --- a/tools/clitkAffineTransformGenericFilter.h +++ b/tools/clitkAffineTransformGenericFilter.h @@ -1,3 +1,20 @@ +/*========================================================================= + Program: vv http://www.creatis.insa-lyon.fr/rio/vv + + Authors belong to: + - University of LYON http://www.universite-lyon.fr/ + - Léon Bérard cancer center http://www.centreleonberard.fr + - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the copyright notices for more information. + + It is distributed under dual licence + + - BSD See included LICENSE.txt file + - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +===========================================================================**/ #ifndef clitkAffineTransformGenericFilter_h #define clitkAffineTransformGenericFilter_h @@ -70,6 +87,11 @@ namespace clitk //---------------------------------------- void Update(); + template + static + typename itk::Matrix + createMatrixFromElastixFile(std::vector & filename, bool verbose=true); + protected: //---------------------------------------- @@ -86,6 +108,10 @@ namespace clitk template void UpdateWithDimAndPixelType(); template void UpdateWithDimAndVectorType(); + static bool GetElastixValueFromTag(std::ifstream & is, std::string tag, std::string & value); + static void GetValuesFromValue(const std::string & s, + std::vector & values); + //---------------------------------------- // Data members //----------------------------------------