]> Creatis software - FrontAlgorithms.git/blobdiff - libs/fpa/Image/RegionGrow.h
...
[FrontAlgorithms.git] / libs / fpa / Image / RegionGrow.h
index e21bbb91ce6e0015abe84fb5e57a453725455f81..f60847982cff93c6225b3138634e3b22999d6d7c 100644 (file)
@@ -9,6 +9,7 @@
 #include <itkImageToImageFilter.h>
 #include <itkFunctionBase.h>
 #include <fpa/Base/SeedsInterface.h>
+#include <fpa/Image/MarksInterface.h>
 
 namespace fpa
 {
@@ -19,7 +20,8 @@ namespace fpa
     template< class _TInputImage, class _TOutputImage >
     class RegionGrow
       : public itk::ImageToImageFilter< _TInputImage, _TOutputImage >,
-        public fpa::Base::SeedsInterface< typename _TInputImage::IndexType, typename _TInputImage::IndexType::LexicographicCompare >
+        public fpa::Base::SeedsInterface< typename _TInputImage::IndexType, typename _TInputImage::IndexType::LexicographicCompare >,
+        public fpa::Image::MarksInterface< _TInputImage::ImageDimension >
     {
     public:
       typedef _TInputImage  TInputImage;
@@ -36,6 +38,7 @@ namespace fpa
       typedef itk::SmartPointer< const Self >                    ConstPointer;
 
       typedef fpa::Base::SeedsInterface< TIndex, TIndexCompare > TSeedsInterface;
+      typedef fpa::Image::MarksInterface< _TInputImage::ImageDimension > TMarksInterface;
       typedef itk::FunctionBase< TInputPixel, bool > TIntensityFunctor;
 
     public:
@@ -68,9 +71,6 @@ namespace fpa
 
     protected:
       typename TIntensityFunctor::Pointer m_IntensityFunctor;
-      /* TODO
-         TSeeds m_Seeds;
-      */
       TOutputPixel m_InsideValue;
       TOutputPixel m_OutsideValue;
     };