X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkAffineTransformGenericFilter.h;h=482114b0adfd4d9e342855a7817c20cbdf8e1076;hb=5578995d9a82792833333eeb3dd5c8ecac967293;hp=f990fa585cd920e54a95c2b1d2dd3a9c9389726c;hpb=a30e4235ed3fc2099ffd9c204a41aaa8063fd452;p=clitk.git diff --git a/tools/clitkAffineTransformGenericFilter.h b/tools/clitkAffineTransformGenericFilter.h index f990fa5..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,36 +82,34 @@ namespace clitk } - //---------------------------------------- + //---------------------------------------- // Update - //---------------------------------------- + //---------------------------------------- void Update(); + + //---------------------------------------- + // 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(); - 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); - - //---------------------------------------- + //---------------------------------------- // Data members //---------------------------------------- args_info_type m_ArgsInfo;