]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/Functors/RegionGrow/BinaryThreshold.h
...
[FrontAlgorithms.git] / lib / fpa / Image / Functors / RegionGrow / BinaryThreshold.h
index 78c42a77d938003a49ad297d325771713f5e87ac..70ac8d0027e8bca7c218a5c1cc11aeb493255590 100644 (file)
@@ -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;