]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Algorithms/GulsunTekMedialness.h
...
[cpPlugins.git] / lib / cpExtensions / Algorithms / GulsunTekMedialness.h
index 49eb762668dc1d122c105fedc83f6c8e8f4e1563..15add9eacd806149d0b399f32cc60a1d8c5e2b7a 100644 (file)
@@ -9,15 +9,15 @@ namespace cpExtensions
   {
     /**
      */
-    template< class _TGradient >
+    template< class _TGradient, class _TMask = itk::Image< unsigned char, _TGradient::ImageDimension > >
     class GulsunTekMedialness
-      : public GradientImageFunctionBase< _TGradient >
+      : public GradientImageFunctionBase< _TGradient, _TMask >
     {
     public:
-      typedef GulsunTekMedialness                     Self;
-      typedef GradientImageFunctionBase< _TGradient > Superclass;
-      typedef itk::SmartPointer< Self >               Pointer;
-      typedef itk::SmartPointer< const Self >         ConstPointer;
+      typedef GulsunTekMedialness                             Self;
+      typedef GradientImageFunctionBase< _TGradient, _TMask > Superclass;
+      typedef itk::SmartPointer< Self >                       Pointer;
+      typedef itk::SmartPointer< const Self >                 ConstPointer;
 
       itkStaticConstMacro( Dimension, unsigned int, Superclass::Dimension );
 
@@ -49,7 +49,7 @@ namespace cpExtensions
       GulsunTekMedialness( );
       virtual ~GulsunTekMedialness( );
 
-      virtual TOutput _Evaluate( const TIndex& i ) const ITK_OVERRIDE;
+      virtual TOutput _Evaluate( const TIndex& i ) const cpExtensions_OVERRIDE;
 
     private:
       // Purposely not implemented.