]> Creatis software - clitk.git/blob - tools/clitkCropImageGenericFilter.h
GateAsciiImageIO is now cross-platform using itksys::RegularExpression
[clitk.git] / tools / clitkCropImageGenericFilter.h
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to:
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
8
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.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18
19 #ifndef CLITKCROPIMAGEGENERICFILTER_H
20 #define CLITKCROPIMAGEGENERICFILTER_H
21
22 // clitk
23 #include "clitkIO.h"
24 #include "clitkImageToImageGenericFilter.h"
25 #include "clitkCropLikeImageFilter.h"
26 #include "clitkAutoCropFilter.h"
27 #include "clitkCropImage_ggo.h"
28
29 // itk
30 #include <itkCropImageFilter.h>
31
32 //--------------------------------------------------------------------
33 namespace clitk
34 {
35
36   class ITK_EXPORT CropImageGenericFilter:
37     public ImageToImageGenericFilter<CropImageGenericFilter>
38   {
39   public:
40     //--------------------------------------------------------------------
41     CropImageGenericFilter();
42
43     //--------------------------------------------------------------------
44     typedef CropImageGenericFilter   Self;
45     typedef ImageToImageGenericFilter<CropImageGenericFilter> Superclass;
46     typedef itk::SmartPointer<Self>       Pointer;
47     typedef itk::SmartPointer<const Self> ConstPointer;
48     typedef args_info_clitkCropImage       args_info_type;
49
50     //--------------------------------------------------------------------
51     itkNewMacro(Self);
52     itkTypeMacro( CropImageGenericFilter, LightObject );
53
54     //--------------------------------------------------------------------
55     void SetArgsInfo(const args_info_type& a);
56
57     //--------------------------------------------------------------------
58     // Main function called each time the filter is updated
59     template<class ImageType>
60     void UpdateWithInputImageType();
61
62   protected:
63     template<unsigned int Dim> void InitializeImageType();
64     args_info_type mArgsInfo;
65
66   };// end class
67   //--------------------------------------------------------------------
68 } // end namespace clitk
69
70 #endif // #define CLITKCROPIMAGEGENERICFILTER_H