X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FBase%2FFunctors%2FRegionGrow%2FTautology.h;h=a024b598f47e883330432844a6e97b609efca427;hb=5c78aecb0f5a207ff020e24f99d1e9bd8c388ad1;hp=11d016eccf149fb62792e760abdcc8d64364efe8;hpb=40fb0405cfef444001429f8ba49c407ce9168a94;p=FrontAlgorithms.git diff --git a/lib/fpa/Base/Functors/RegionGrow/Tautology.h b/lib/fpa/Base/Functors/RegionGrow/Tautology.h index 11d016e..a024b59 100644 --- a/lib/fpa/Base/Functors/RegionGrow/Tautology.h +++ b/lib/fpa/Base/Functors/RegionGrow/Tautology.h @@ -1,7 +1,12 @@ +// ========================================================================= +// @author Leonardo Florez Valencia +// @email florez-l@javeriana.edu.co +// ========================================================================= + #ifndef __fpa__Base__Functors__RegionGrow__Tautology__h__ #define __fpa__Base__Functors__RegionGrow__Tautology__h__ -#include +#include namespace fpa { @@ -13,38 +18,40 @@ namespace fpa { /** */ - template< class _TVertex, class _TOutput > + template< class _TValue > class Tautology - : public Base< _TVertex, _TOutput > + : public itk::FunctionBase< _TValue, bool > { public: - typedef Tautology Self; - typedef Base< _TVertex, _TOutput > Superclass; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; - - typedef typename Superclass::TOutput TOutput; - typedef typename Superclass::TVertex TVertex; + typedef Tautology Self; + typedef itk::FunctionBase< _TValue, bool > Superclass; + typedef itk::SmartPointer< Self > Pointer; + typedef itk::SmartPointer< const Self > ConstPointer; public: itkNewMacro( Self ); - itkTypeMacro( Tautology, Base ); + itkTypeMacro( + fpa::Base::Functors::RegionGrow::Tautology, + itk::FunctionBase + ); public: - virtual TOutput Evaluate( const TVertex& a, const TVertex& b ) const override + virtual bool Evaluate( const _TValue& input ) const override { - return( this->m_InsideValue ); + return( true ); } protected: Tautology( ) : Superclass( ) - { } + { + } virtual ~Tautology( ) - { } + { + } private: - // Purposely not defined + // Purposely not implemented Tautology( const Self& other ); Self& operator=( const Self& other ); };