]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/Functors/SimpleNeighborhood.h
...
[FrontAlgorithms.git] / lib / fpa / Image / Functors / SimpleNeighborhood.h
index 1fd854757003c21efe03231c5d230429c2785b1d..0e4ebf7d484d14570c14ec3d93dcac43449fec6a 100644 (file)
@@ -4,6 +4,7 @@
 #include <vector>
 #include <fpa/Image/Functors/Base.h>
 #include <itkFunctionBase.h>
+#include <itkImageBase.h>
 
 namespace fpa
 {
@@ -13,12 +14,12 @@ namespace fpa
     {
       /**
        */
-      template< class _TImage >
+      template< unsigned int _VDim >
       class SimpleNeighborhood
-        : public fpa::Image::Functors::Base< _TImage, itk::FunctionBase< typename _TImage::IndexType, std::vector< typename _TImage::IndexType > > >
+        : public fpa::Image::Functors::Base< itk::ImageBase< _VDim >, itk::FunctionBase< itk::Index< _VDim >, std::vector< itk::Index< _VDim > > > >
       {
       public:
-        typedef _TImage                         TImage;
+        typedef itk::ImageBase< _VDim >         TImage;
         typedef typename TImage::IndexType      TIndex;
         typedef typename TIndex::OffsetType     TOffset;
         typedef std::vector< TIndex >           TOutput;
@@ -36,7 +37,7 @@ namespace fpa
         itkSetMacro( Order, unsigned int );
 
       public:
-        virtual TOutput Evaluate( const TIndex& center ) const fpa_OVERRIDE;
+        virtual TOutput Evaluate( const TIndex& center ) const override;
 
       protected:
         SimpleNeighborhood( );