]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/Functors/SimpleNeighborhood.h
...
[FrontAlgorithms.git] / lib / fpa / Image / Functors / SimpleNeighborhood.h
index 30745990c7c9d7ab0802db8f17c25cdbbc28df6f..9f777b01f19326584a64de06f81bb32aa0028f2c 100644 (file)
@@ -20,6 +20,7 @@ namespace fpa
       public:
         typedef _TImage                         TImage;
         typedef typename TImage::IndexType      TIndex;
+        typedef typename TIndex::OffsetType     TOffset;
         typedef std::vector< TIndex >           TOutput;
         typedef itk::FunctionBase< TIndex, TOutput > TBaseFunctor;
         typedef fpa::Image::Functors::Base< TImage, TBaseFunctor > Superclass;
@@ -35,12 +36,15 @@ namespace fpa
         itkSetMacro( Order, unsigned int );
 
       public:
-        virtual TOutput Evaluate( const TIndex& center ) const fpa_OVERRIDE;
+        virtual TOutput Evaluate( const TIndex& center ) const override;
 
       protected:
         SimpleNeighborhood( );
         virtual ~SimpleNeighborhood( );
 
+        void _1stCombination( ) const;
+        void _2ndCombination( ) const;
+
       private:
         // Purposely not implemented
         SimpleNeighborhood( const Self& other );
@@ -48,6 +52,7 @@ namespace fpa
 
       protected:
         unsigned int m_Order;
+        mutable std::vector< TOffset > m_Offsets;
       };
 
     } // ecapseman