]> Creatis software - clitk.git/blob - segmentation/clitkExtractBonesGenericFilter.h
Merge branch 'master' of tux.creatis.insa-lyon.fr:clitk
[clitk.git] / segmentation / clitkExtractBonesGenericFilter.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 CLITKEXTRACTBONESSGENERICFILTER_H
20 #define CLITKEXTRACTBONESSGENERICFILTER_H
21
22 #include "clitkIO.h"
23 #include "clitkImageToImageGenericFilter.h"
24 #include "clitkExtractBonesFilter.h"
25
26 //--------------------------------------------------------------------
27 namespace clitk 
28 {
29   
30   template<class ArgsInfoType>
31   class ITK_EXPORT ExtractBonesGenericFilter: 
32     public ImageToImageGenericFilter<ExtractBonesGenericFilter<ArgsInfoType> >
33   {
34     
35   public:
36     //--------------------------------------------------------------------
37     ExtractBonesGenericFilter();
38
39     //--------------------------------------------------------------------
40     typedef ExtractBonesGenericFilter      Self;
41     typedef ImageToImageGenericFilter<ExtractBonesGenericFilter<ArgsInfoType> > Superclass;
42     typedef itk::SmartPointer<Self>       Pointer;
43     typedef itk::SmartPointer<const Self> ConstPointer;
44
45     //--------------------------------------------------------------------
46     itkNewMacro(Self);  
47     itkTypeMacro(ExtractBonesGenericFilter, LightObject);
48
49     //--------------------------------------------------------------------
50     void SetArgsInfo(const ArgsInfoType & a);
51     template<class FilterType>
52     void SetOptionsFromArgsInfoToFilter(FilterType * f);
53
54     //--------------------------------------------------------------------
55     // Main function called each time the filter is updated
56     template<class ImageType>  
57     void UpdateWithInputImageType();
58
59   protected:
60     template<unsigned int Dim> void InitializeImageType();
61     ArgsInfoType mArgsInfo;
62     
63   }; // end class
64   //--------------------------------------------------------------------
65     
66 } // end namespace clitk
67
68 #ifndef ITK_MANUAL_INSTANTIATION
69 #include "clitkExtractBonesGenericFilter.txx"
70 #endif
71
72 #endif // #define CLITKEXTRACTBONESSGENERICFILTER_H