1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
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
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.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
19 #ifndef CLITKRELATIVEPOSITIONGENERICFILTER_H
20 #define CLITKRELATIVEPOSITIONGENERICFILTER_H
24 #include "clitkImageToImageGenericFilter.h"
25 #include "clitkAddRelativePositionConstraintToLabelImageFilter.h"
26 #include "clitkSliceBySliceRelativePositionFilter.h"
28 //--------------------------------------------------------------------
32 template<class ArgsInfoType>
33 class ITK_EXPORT RelativePositionGenericFilter:
34 public ImageToImageGenericFilter<RelativePositionGenericFilter<ArgsInfoType> >
37 //--------------------------------------------------------------------
38 RelativePositionGenericFilter();
40 //--------------------------------------------------------------------
41 typedef ImageToImageGenericFilter<RelativePositionGenericFilter<ArgsInfoType> > Superclass;
42 typedef RelativePositionGenericFilter Self;
43 typedef itk::SmartPointer<Self> Pointer;
44 typedef itk::SmartPointer<const Self> ConstPointer;
46 //--------------------------------------------------------------------
48 itkTypeMacro(RelativePositionGenericFilter, LightObject);
50 //--------------------------------------------------------------------
51 void SetArgsInfo(const ArgsInfoType & a);
52 template<class FilterType>
53 void SetOptionsFromArgsInfoToFilter(FilterType * f) ;
55 //--------------------------------------------------------------------
56 // Main function called each time the filter is updated
57 template<class ImageType>
58 void UpdateWithInputImageType();
61 template<unsigned int Dim> void InitializeImageType();
62 ArgsInfoType mArgsInfo;
65 RelativePositionGenericFilter(const Self&); //purposely not implemented
66 void operator=(const Self&); //purposely not implemented
69 //--------------------------------------------------------------------
70 } // end namespace clitk
72 #ifndef ITK_MANUAL_INSTANTIATION
73 #include "clitkRelativePositionGenericFilter.txx"
76 #endif // #define CLITKRELATIVEPOSITIONGENERICFILTER_H