1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
6 #ifndef __fpa__Image__Functors__VertexIdentity__h__
7 #define __fpa__Image__Functors__VertexIdentity__h__
9 #include <fpa/Image/Functors/VertexParentBase.h>
19 template< class _TInputImage, class _TOutputValue >
21 : public fpa::Image::Functors::VertexParentBase< _TInputImage, _TOutputValue >
24 typedef _TInputImage TInputImage;
25 typedef _TOutputValue TOutputValue;
26 typedef VertexIdentity Self;
27 typedef itk::SmartPointer< Self > Pointer;
28 typedef itk::SmartPointer< const Self > ConstPointer;
29 typedef fpa::Image::Functors::VertexParentBase< TInputImage, TOutputValue > Superclass;
31 typedef typename Superclass::TVertex TVertex;
36 fpa::Image::Functors::VertexIdentity,
37 fpa::Image::Functors::VertexParentBase
41 virtual TOutputValue Evaluate(
42 const TVertex& a, const TVertex& p
45 return( TOutputValue( this->m_Image->GetPixel( a ) ) );
52 virtual ~VertexIdentity( ) { }
55 VertexIdentity( const Self& other );
56 Self& operator=( const Self& other );
65 #endif // __fpa__Image__Functors__VertexIdentity__h__