1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
19 #ifndef CLITKPADIMAGEGENERICFILTER_H
20 #define CLITKPADIMAGEGENERICFILTER_H
24 #include "clitkImageToImageGenericFilter.h"
25 #include "clitkPadImage_ggo.h"
27 //--------------------------------------------------------------------
31 class ITK_EXPORT PadImageGenericFilter:
32 public ImageToImageGenericFilter<PadImageGenericFilter>
38 PAD_ERR_NOT_SAME_SPACING = -1,
39 PAD_ERR_NOT_LIKE_LARGER = -2
42 //--------------------------------------------------------------------
43 PadImageGenericFilter();
45 //--------------------------------------------------------------------
46 typedef PadImageGenericFilter Self;
47 typedef ImageToImageGenericFilter<PadImageGenericFilter> Superclass;
48 typedef itk::SmartPointer<Self> Pointer;
49 typedef itk::SmartPointer<const Self> ConstPointer;
50 typedef args_info_clitkPadImage args_info_type;
52 //--------------------------------------------------------------------
54 itkTypeMacro( PadImageGenericFilter, LightObject );
56 //--------------------------------------------------------------------
57 void SetArgsInfo(const args_info_type& a);
59 //--------------------------------------------------------------------
60 // Main function called each time the filter is updated
61 template<class ImageType>
62 void UpdateWithInputImageType();
65 template<unsigned int Dim> void InitializeImageType();
67 template <class ImageType, class PadBoundType, unsigned int dim>
68 int PadLike(typename ImageType::Pointer input, PadBoundType* padLower, PadBoundType* padUpper);
70 args_info_type mArgsInfo;
73 //--------------------------------------------------------------------
74 } // end namespace clitk
76 #endif // #define CLITKPADIMAGEGENERICFILTER_H