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 itk::SmartPointer<Self> Pointer;
69 typedef itk::SmartPointer<const Self> ConstPointer;
71 //--------------------------------------------------------------------
72 // Method for creation through the object factory
73 // and Run-time type information (and related methods)
75 itkTypeMacro(MedianImageGenericFilter, LightObject);
77 //--------------------------------------------------------------------
78 void SetArgsInfo(const args_info_type & a);
80 //--------------------------------------------------------------------
81 // Main function called each time the filter is updated
82 template<class InputImageType>
83 void UpdateWithInputImageType();
89 template<unsigned int Dim> void InitializeImageType();
91 args_info_type mArgsInfo;
94 //--------------------------------------------------------------------
96 } // end namespace clitk
98 #ifndef ITK_MANUAL_INSTANTIATION
99 #include "clitkMedianImageGenericFilter.txx"
102 #endif // #define clitkMedianImageGenericFilter_h