X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkAffineTransformGenericFilter.h;h=482114b0adfd4d9e342855a7817c20cbdf8e1076;hb=543b72e23ad001ac2a7743b9beacf48e2d0054ac;hp=39506326f572a2bb614da44524c64547879eda41;hpb=14d6a55438749d14c04f32539b5bc76c6e0b97c8;p=clitk.git diff --git a/tools/clitkAffineTransformGenericFilter.h b/tools/clitkAffineTransformGenericFilter.h index 3950632..482114b 100644 --- a/tools/clitkAffineTransformGenericFilter.h +++ b/tools/clitkAffineTransformGenericFilter.h @@ -73,7 +73,7 @@ namespace clitk //---------------------------------------- // Set & Get - //---------------------------------------- + //---------------------------------------- void SetArgsInfo(const args_info_type & a) { m_ArgsInfo=a; @@ -82,37 +82,34 @@ namespace clitk } - //---------------------------------------- + //---------------------------------------- // Update - //---------------------------------------- + //---------------------------------------- void Update(); - template - static - typename itk::Matrix - createMatrixFromElastixFile(std::vector & filename, bool verbose=true); + + //---------------------------------------- + // Compute bounding box + //---------------------------------------- + vnl_vector ComputeSize(vnl_vector inputSize, vnl_matrix transformationMatrix, bool returnMin); protected: - //---------------------------------------- + //---------------------------------------- // Constructor & Destructor - //---------------------------------------- + //---------------------------------------- AffineTransformGenericFilter(); ~AffineTransformGenericFilter() {}; - //---------------------------------------- + //---------------------------------------- // Templated members - //---------------------------------------- + //---------------------------------------- template void UpdateWithDim(std::string PixelType, int Components); 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 //---------------------------------------- args_info_type m_ArgsInfo;