X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FImage%2FFunctors%2FRegionGrowAllBelongsFunction.h;h=362304fc07233a20c86d0be5db6834fa6e7266a6;hb=6468f1fda5fed2788fbaef1a7925c91ecff83d13;hp=e352f59817c934bd6528eb21ac8344b0a6ff09b3;hpb=2479b55370fe1bec58d94faa3cc268bac419f6d6;p=FrontAlgorithms.git diff --git a/lib/fpa/Image/Functors/RegionGrowAllBelongsFunction.h b/lib/fpa/Image/Functors/RegionGrowAllBelongsFunction.h index e352f59..362304f 100644 --- a/lib/fpa/Image/Functors/RegionGrowAllBelongsFunction.h +++ b/lib/fpa/Image/Functors/RegionGrowAllBelongsFunction.h @@ -1,7 +1,7 @@ #ifndef __FPA__IMAGE__FUNCTORS__REGIONGROWALLBELONGSFUNCTION__H__ #define __FPA__IMAGE__FUNCTORS__REGIONGROWALLBELONGSFUNCTION__H__ -#include +#include namespace fpa { @@ -13,26 +13,27 @@ namespace fpa */ template< class I > class RegionGrowAllBelongsFunction - : public fpa::Image::Functors::ImageFunction< I, bool > + : public fpa::Base::Functors::TautologyFunction< I, typename I::IndexType > { public: /// Type-related and pointers - typedef RegionGrowAllBelongsFunction Self; - typedef fpa::Image::Functors::ImageFunction< I, bool > Superclass; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; + typedef RegionGrowAllBelongsFunction Self; + typedef itk::SmartPointer< Self > Pointer; + typedef itk::SmartPointer< const Self > ConstPointer; + typedef fpa::Base::Functors:: + TautologyFunction< I, typename I::IndexType > + Superclass; // Superclass' types - typedef typename Superclass::TInputImage TInputImage; - typedef typename Superclass::TOutputValue TOutputValue; - typedef typename Superclass::TIndex TIndex; + typedef I TInputImage; + typedef typename I::IndexType TIndex; public: itkNewMacro( Self ); itkTypeMacro( RegionGrowAllBelongsFunction, itkImageFunction ); public: - virtual TOutputValue Evaluate( const TIndex& idx ) const + virtual bool Evaluate( const TIndex& v ) const { return( true ); } protected: