X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FBase%2FFunctors%2FRegionGrow%2FTautology.h;h=11d016eccf149fb62792e760abdcc8d64364efe8;hb=40fb0405cfef444001429f8ba49c407ce9168a94;hp=744d618003e6635f259d3f1613d99acf7ec27339;hpb=cf298be2de026712c5ab3487978e3a6954a809cd;p=FrontAlgorithms.git diff --git a/lib/fpa/Base/Functors/RegionGrow/Tautology.h b/lib/fpa/Base/Functors/RegionGrow/Tautology.h index 744d618..11d016e 100644 --- a/lib/fpa/Base/Functors/RegionGrow/Tautology.h +++ b/lib/fpa/Base/Functors/RegionGrow/Tautology.h @@ -13,16 +13,17 @@ namespace fpa { /** */ - template< class _TVertex > + template< class _TVertex, class _TOutput > class Tautology - : public Base< _TVertex > + : public Base< _TVertex, _TOutput > { public: typedef Tautology Self; - typedef Base< _TVertex > Superclass; + 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; public: @@ -30,11 +31,9 @@ namespace fpa itkTypeMacro( Tautology, Base ); public: - virtual bool Evaluate( - const TVertex& a, const TVertex& b - ) const override + virtual TOutput Evaluate( const TVertex& a, const TVertex& b ) const override { - return( true ); + return( this->m_InsideValue ); } protected: