]> Creatis software - clitk.git/blob - tools/clitkAutoCropGenericFilter.h
Increase number of decimal for fusion and overlay
[clitk.git] / tools / clitkAutoCropGenericFilter.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 CLITKAUTOCROPGENERICFILTER_H
20 #define CLITKAUTOCROPGENERICFILTER_H
21
22 // clitk 
23 #include "clitkIO.h"
24 #include "clitkImageToImageGenericFilter.h"
25 #include "clitkAutoCropFilter.h"
26
27 //--------------------------------------------------------------------
28 namespace clitk 
29 {
30
31   template<class ArgsInfoType>
32   class ITK_EXPORT AutoCropGenericFilter:
33     public ImageToImageGenericFilter<AutoCropGenericFilter<ArgsInfoType> >
34   {
35   public:
36     //--------------------------------------------------------------------
37     AutoCropGenericFilter();
38   
39     //--------------------------------------------------------------------
40     typedef AutoCropGenericFilter   Self;
41     typedef ImageToImageGenericFilter<AutoCropGenericFilter<ArgsInfoType> > Superclass;
42     typedef itk::SmartPointer<Self>       Pointer;
43     typedef itk::SmartPointer<const Self> ConstPointer;
44    
45     //--------------------------------------------------------------------
46     itkNewMacro(Self);  
47     itkTypeMacro( AutoCropGenericFilter, LightObject );
48
49     //--------------------------------------------------------------------
50     void SetArgsInfo(const ArgsInfoType & a);
51
52     //--------------------------------------------------------------------
53     // Main function called each time the filter is updated
54     template<class ImageType>  
55     void UpdateWithInputImageType();
56
57   protected:
58     template<unsigned int Dim> void InitializeImageType();
59     ArgsInfoType mArgsInfo;
60
61   };// end class
62   //--------------------------------------------------------------------
63 } // end namespace clitk
64
65 #ifndef ITK_MANUAL_INSTANTIATION
66 #include "clitkAutoCropGenericFilter.txx"
67 #endif
68
69 #endif // #define CLITKAUTOCROPGENERICFILTER_H