X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FImage%2FFunctors%2FRegionGrow%2FBinaryThreshold.h;h=70ac8d0027e8bca7c218a5c1cc11aeb493255590;hb=40fb0405cfef444001429f8ba49c407ce9168a94;hp=78c42a77d938003a49ad297d325771713f5e87ac;hpb=6585142e69f2ff5e4fceb21320ab3795c3e82218;p=FrontAlgorithms.git diff --git a/lib/fpa/Image/Functors/RegionGrow/BinaryThreshold.h b/lib/fpa/Image/Functors/RegionGrow/BinaryThreshold.h index 78c42a7..70ac8d0 100644 --- a/lib/fpa/Image/Functors/RegionGrow/BinaryThreshold.h +++ b/lib/fpa/Image/Functors/RegionGrow/BinaryThreshold.h @@ -14,16 +14,17 @@ namespace fpa { /** */ - template< class _TImage > + template< class _TImage, class _TOutput > class BinaryThreshold - : public fpa::Image::Functors::Base< _TImage, fpa::Base::Functors::RegionGrow::Base< typename _TImage::IndexType > > + : public fpa::Image::Functors::Base< _TImage, fpa::Base::Functors::RegionGrow::Base< typename _TImage::IndexType, _TOutput > > { public: typedef _TImage TImage; + typedef _TOutput TOutput; typedef typename TImage::IndexType TIndex; typedef typename TImage::PixelType TPixel; - typedef fpa::Base::Functors::RegionGrow::Base< TIndex > TBase; + typedef fpa::Base::Functors::RegionGrow::Base< TIndex, TOutput > TBase; typedef fpa::Image::Functors::Base< TImage, TBase > Superclass; typedef BinaryThreshold Self; typedef itk::SmartPointer< Self > Pointer; @@ -39,7 +40,7 @@ namespace fpa itkSetMacro( Upper, TPixel ); public: - virtual bool Evaluate( + virtual TOutput Evaluate( const TIndex& a, const TIndex& b ) const override;