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 ===========================================================================*/
18 /*=========================================================================
21 Module: $RCSfile: clitkMedianImageGenericFilter.h,v $
23 Date: $Date: 2010/07/23 14:56:21 $
24 Version: $Revision: 1.1 $
25 Author : Bharath Navalpakkam <Bharath.Navalpakkam@creatis.insa-lyon.fr>
27 Léon Bérard cancer center http://www.centreleonberard.fr
28 CREATIS http://www.creatis.insa-lyon.fr
30 This program is free software: you can redistribute it and/or modify
31 it under the terms of the GNU General Public License as published by
32 the Free Software Foundation, version 3 of the License.
34 This program is distributed in the hope that it will be useful,
35 but WITHOUT ANY WARRANTY; without even the implied warranty of
36 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 GNU General Public License for more details.
39 You should have received a copy of the GNU General Public License
40 along with this program. If not, see <http://www.gnu.org/licenses/>.
42 =========================================================================*/
44 #ifndef CLITKMEDIANIMAGEGENERICFILTER_H
45 #define CLITKMEDIANIMAGEGENERICFILTER_H
49 #include "clitkCommon.h"
50 #include "clitkImageToImageGenericFilter.h"
52 //--------------------------------------------------------------------
56 template<class args_info_type>
57 class ITK_EXPORT MedianImageGenericFilter:
58 public ImageToImageGenericFilter<MedianImageGenericFilter<args_info_type> >
63 //--------------------------------------------------------------------
64 MedianImageGenericFilter();
66 //--------------------------------------------------------------------
67 typedef MedianImageGenericFilter Self;
68 typedef ImageToImageGenericFilter<MedianImageGenericFilter<args_info_type> > Superclass;
69 typedef itk::SmartPointer<Self> Pointer;
70 typedef itk::SmartPointer<const Self> ConstPointer;
72 //--------------------------------------------------------------------
73 // Method for creation through the object factory
74 // and Run-time type information (and related methods)
76 itkTypeMacro(MedianImageGenericFilter, LightObject);
78 //--------------------------------------------------------------------
79 void SetArgsInfo(const args_info_type & a);
81 //--------------------------------------------------------------------
82 // Main function called each time the filter is updated
83 template<class InputImageType>
84 void UpdateWithInputImageType();
87 template<unsigned int Dim> void InitializeImageType();
88 args_info_type mArgsInfo;
91 MedianImageGenericFilter(const Self&); //purposely not implemented
92 void operator=(const Self&); //purposely not implemented
95 //--------------------------------------------------------------------
97 } // end namespace clitk
99 #ifndef ITK_MANUAL_INSTANTIATION
100 #include "clitkMedianImageGenericFilter.txx"
103 #endif // #define clitkMedianImageGenericFilter_h