X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FFunctors%2FDijkstra%2FImage%2FIdentity.h;fp=lib%2Ffpa%2FFunctors%2FDijkstra%2FImage%2FIdentity.h;h=0000000000000000000000000000000000000000;hb=a8ac405fe1422bc0792a810f7f0693096a22c20e;hp=f69948665413c0d1ae71106aab99fa801d0983b2;hpb=8abe87eaa0d29ba667d5cbf35f4ca1ca2e38c6c4;p=FrontAlgorithms.git diff --git a/lib/fpa/Functors/Dijkstra/Image/Identity.h b/lib/fpa/Functors/Dijkstra/Image/Identity.h deleted file mode 100644 index f699486..0000000 --- a/lib/fpa/Functors/Dijkstra/Image/Identity.h +++ /dev/null @@ -1,77 +0,0 @@ -// ========================================================================= -// @author Leonardo Florez Valencia -// @email florez-l@javeriana.edu.co -// ========================================================================= -#ifndef __fpa__Functors__Dijkstra__Image__Identity__h__ -#define __fpa__Functors__Dijkstra__Image__Identity__h__ - -#include - -namespace fpa -{ - namespace Functors - { - namespace Dijkstra - { - namespace Image - { - /** - */ - template< class _TImage, class _TValue > - class Identity - : public fpa::Functors::BaseVertexFunction< typename _TImage::IndexType, _TValue > - { - public: - typedef _TImage TImage; - typedef _TValue TValue; - typedef typename TImage::IndexType TVertex; - typedef fpa::Functors::BaseVertexFunction< TVertex, TValue > Superclass; - typedef Identity Self; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; - - public: - itkNewMacro( Self ); - itkTypeMacro( - fpa::Functors::Dijkstra::Image::Identity, - fpa::Functors::BaseVertexFunction - ); - - public: - virtual TValue Evaluate( const TVertex& v, const TVertex& p ) const override - { - const TImage* image = - dynamic_cast< const TImage* >( - this->m_DataObject.GetPointer( ) - ); - if( image != NULL ) - return( TValue( image->GetPixel( v ) ) ); - else - return( TValue( -1 ) ); - } - - protected: - Identity( ) - : Superclass( ) - { - } - virtual ~Identity( ) - { - } - - private: - // Purposely not implemented. - Identity( const Self& other ); - Self& operator=( const Self& other ); - }; - - } // ecapseman - - } // ecapseman - - } // ecapseman - -} // ecapseman - -#endif // __fpa__Functors__Dijkstra__Identity__h__ -// eof - $RCSfile$