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 #ifndef CLITKImageGradientMagnitudeGENERICFILTER_H
19 #define CLITKImageGradientMagnitudeGENERICFILTER_H
21 #include "clitkImageToImageGenericFilter.h"
23 //--------------------------------------------------------------------
27 template<class args_info_type>
28 class ITK_EXPORT ImageGradientMagnitudeGenericFilter:
29 public ImageToImageGenericFilter<ImageGradientMagnitudeGenericFilter<args_info_type> >
34 //--------------------------------------------------------------------
35 ImageGradientMagnitudeGenericFilter();
37 //--------------------------------------------------------------------
38 typedef ImageGradientMagnitudeGenericFilter Self;
39 typedef itk::SmartPointer<Self> Pointer;
40 typedef itk::SmartPointer<const Self> ConstPointer;
42 //--------------------------------------------------------------------
43 // Method for creation through the object factory
44 // and Run-time type information (and related methods)
46 itkTypeMacro(ImageGradientMagnitudeGenericFilter, LightObject);
48 //--------------------------------------------------------------------
49 void SetArgsInfo(const args_info_type & a);
51 //--------------------------------------------------------------------
52 // Main function called each time the filter is updated
53 template<class InputImageType>
54 void UpdateWithInputImageType();
57 template<unsigned int Dim> void InitializeImageType();
58 args_info_type mArgsInfo;
61 bool m_NormalizeOutput;
64 //--------------------------------------------------------------------
66 } // end namespace clitk
68 #ifndef ITK_MANUAL_INSTANTIATION
69 #include "clitkImageGradientMagnitudeGenericFilter.txx"
72 #endif // #define clitkImageGradientMagnitudeGenericFilter_h