#include <vector>
#include <fpa/Image/Functors/Base.h>
#include <itkFunctionBase.h>
+#include <itkImageBase.h>
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;
itkSetMacro( Order, unsigned int );
public:
- virtual TOutput Evaluate( const TIndex& center ) const fpa_OVERRIDE;
+ virtual TOutput Evaluate( const TIndex& center ) const override;
protected:
SimpleNeighborhood( );