]> Creatis software - clitk.git/blob - segmentation/clitkExtractLymphStationsGenericFilter.h
afeb66b0d7e9a4e7de851e71516cb89c732ecd8e
[clitk.git] / segmentation / clitkExtractLymphStationsGenericFilter.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://oncora1.lyon.fnclcc.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 CLITKEXTRACTLYMPHSTATIONSSGENERICFILTER_H
20 #define CLITKEXTRACTLYMPHSTATIONSSGENERICFILTER_H
21
22 #include "clitkIO.h"
23 #include "clitkImageToImageGenericFilter.h"
24 #include "clitkExtractLymphStationsFilter.h"
25
26 //--------------------------------------------------------------------
27 namespace clitk 
28 {
29   
30   template<class ArgsInfoType>
31   class ITK_EXPORT ExtractLymphStationsGenericFilter: 
32     public ImageToImageGenericFilter<ExtractLymphStationsGenericFilter<ArgsInfoType> >
33   {
34     
35   public:
36     //--------------------------------------------------------------------
37     ExtractLymphStationsGenericFilter();
38
39     //--------------------------------------------------------------------
40     typedef ImageToImageGenericFilter<ExtractLymphStationsGenericFilter<ArgsInfoType> > Superclass;
41     typedef ExtractLymphStationsGenericFilter Self;
42     typedef itk::SmartPointer<Self>           Pointer;
43     typedef itk::SmartPointer<const Self>     ConstPointer;
44
45     //--------------------------------------------------------------------
46     itkNewMacro(Self);  
47     itkTypeMacro(ExtractLymphStationsGenericFilter, LightObject);
48
49     //--------------------------------------------------------------------
50     // Options for the GenericFilter
51     void SetArgsInfo(const ArgsInfoType & a);
52
53     //--------------------------------------------------------------------
54     // Options for the Filter
55     template<class FilterType> 
56     void SetOptionsFromArgsInfoToFilter(FilterType * f) ;
57
58     //--------------------------------------------------------------------
59     // Main function called each time the filter is updated
60     template<class ImageType>  
61     void UpdateWithInputImageType();
62
63   protected:
64     template<unsigned int Dim> void InitializeImageType();
65     ArgsInfoType mArgsInfo;
66     
67   private:
68     ExtractLymphStationsGenericFilter(const Self&); //purposely not implemented
69     void operator=(const Self&); //purposely not implemented
70     
71   }; // end class
72   //--------------------------------------------------------------------
73     
74 } // end namespace clitk
75
76 #ifndef ITK_MANUAL_INSTANTIATION
77 #include "clitkExtractLymphStationsGenericFilter.txx"
78 #endif
79
80 #endif // #define CLITKEXTRACTLYMPHSTATIONSSGENERICFILTER_H