#ifndef __fpa__Base__Functors__Inverse__h__ #define __fpa__Base__Functors__Inverse__h__ #include #include namespace fpa { namespace Base { namespace Functors { /** */ template< class _TInput, class _TOutput > class Inverse : public itk::FunctionBase< _TInput, _TOutput > { public: typedef Inverse Self; typedef itk::FunctionBase< _TInput, _TOutput > Superclass; typedef itk::SmartPointer< Self > Pointer; typedef itk::SmartPointer< const Self > ConstPointer; typedef _TInput TInput; typedef _TOutput TOutput; public: itkNewMacro( Self ); itkTypeMacro( Inverse, itk::FunctionBase ); itkGetConstMacro( NegativeValue, _TOutput ); itkSetMacro( NegativeValue, _TOutput ); public: virtual TOutput Evaluate( const TInput& x ) const override; protected: Inverse( ); virtual ~Inverse( ); private: // Purposely not implemented Inverse( const Self& other ); Self& operator=( const Self& other ); protected: _TOutput m_NegativeValue; }; } // ecapseman } // ecapseman } // ecapseman #ifndef ITK_MANUAL_INSTANTIATION # include #endif // ITK_MANUAL_INSTANTIATION #endif // __fpa__Base__Functors__Inverse__h__ // eof - $RCSfile$