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