From: bharath Date: Thu, 12 Aug 2010 12:06:16 +0000 (+0000) Subject: Derived from ImageToImageGenericFilter for integrating into vv X-Git-Tag: v1.2.0~432 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=539c27b2c26058b3264b15f0176a535ac2f8152d;p=clitk.git Derived from ImageToImageGenericFilter for integrating into vv --- diff --git a/registration/clitkBLUTDIRGenericFilter.h b/registration/clitkBLUTDIRGenericFilter.h index af0efe8..c0f9003 100755 --- a/registration/clitkBLUTDIRGenericFilter.h +++ b/registration/clitkBLUTDIRGenericFilter.h @@ -41,6 +41,7 @@ #include "clitkGenericMetric.h" #include "clitkBSplineDeformableTransformInitializer.h" #include "clitkMultiResolutionPyramidRegionFilter.h" +#include "clitkImageToImageGenericFilter.h" // itk include #include "itkMultiResolutionImageRegistrationMethod.h" @@ -65,64 +66,31 @@ namespace clitk { - class ITK_EXPORT BLUTDIRGenericFilter : public itk::LightObject + class ITK_EXPORT BLUTDIRGenericFilter :public ImageToImageGenericFilter { public: //---------------------------------------- - // ITK + BLUTDIRGenericFilter(); //---------------------------------------- typedef BLUTDIRGenericFilter Self; - typedef itk::LightObject Superclass; typedef itk::SmartPointer Pointer; typedef itk::SmartPointer ConstPointer; + typedef ImageToImageGenericFilterBase Superclass; // Method for creation through the object factory itkNewMacro(Self); + + void SetArgsInfo(const args_info_clitkBLUTDIR & a); // Run-time type information (and related methods) - itkTypeMacro( BLUTDIRGenericFilter, LightObject ); - - - //---------------------------------------- - // Typedefs - //---------------------------------------- - - - //---------------------------------------- - // Set & Get - //---------------------------------------- - void SetArgsInfo(const args_info_clitkBLUTDIR & a) - { - m_ArgsInfo=a; - m_ReferenceFileName=m_ArgsInfo.reference_arg; - m_Verbose=m_ArgsInfo.verbose_flag; - } - - //---------------------------------------- - // Update - //---------------------------------------- - void Update(); + template + void InitializeImageType(); - protected: - //---------------------------------------- - // Constructor & Destructor - //---------------------------------------- - BLUTDIRGenericFilter(); - ~BLUTDIRGenericFilter() {}; + template + void UpdateWithInputImageType(); - - //---------------------------------------- - // Templated members - //---------------------------------------- - template void UpdateWithDim(std::string PixelType); - template void UpdateWithDimAndPixelType(); - - - //---------------------------------------- - // Data members - //---------------------------------------- args_info_clitkBLUTDIR m_ArgsInfo; bool m_Verbose; std::string m_ReferenceFileName; @@ -132,8 +100,5 @@ namespace clitk } // end namespace clitk -#ifndef ITK_MANUAL_INSTANTIATION -#include "clitkBLUTDIRGenericFilter.txx" -#endif #endif // #define clitkBLUTDIRGenericFilter_h