// ========================================================================= // @author Leonardo Florez Valencia // @email florez-l@javeriana.edu.co // ========================================================================= #ifndef __fpa__Image__Functors__VertexIdentity__h__ #define __fpa__Image__Functors__VertexIdentity__h__ #include namespace fpa { namespace Image { namespace Functors { /** */ template< class _TInputImage, class _TOutputValue > class VertexIdentity : public fpa::Image::Functors::VertexParentBase< _TInputImage, _TOutputValue > { public: typedef _TInputImage TInputImage; typedef _TOutputValue TOutputValue; typedef VertexIdentity Self; typedef itk::SmartPointer< Self > Pointer; typedef itk::SmartPointer< const Self > ConstPointer; typedef fpa::Image::Functors::VertexParentBase< TInputImage, TOutputValue > Superclass; typedef typename Superclass::TVertex TVertex; public: itkNewMacro( Self ); itkTypeMacro( fpa::Image::Functors::VertexIdentity, fpa::Image::Functors::VertexParentBase ); public: virtual TOutputValue Evaluate( const TVertex& a, const TVertex& p ) const override { return( TOutputValue( this->m_Image->GetPixel( a ) ) ); } protected: VertexIdentity( ) : Superclass( ) { } virtual ~VertexIdentity( ) { } private: VertexIdentity( const Self& other ); Self& operator=( const Self& other ); }; } // ecapseman } // ecapseman } // ecapseman #endif // __fpa__Image__Functors__VertexIdentity__h__ // eof - $RCSfile$