]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Image/IncrementalRegionGrow.h
...
[FrontAlgorithms.git] / lib / fpa / Image / IncrementalRegionGrow.h
1 #ifndef __FPA__IMAGE__INCREMENTALREGIONGROW__H__
2 #define __FPA__IMAGE__INCREMENTALREGIONGROW__H__
3
4 #include <itkFunctionBase.h>
5 #include <itkImageToImageFilter.h>
6 #include <itkIndex.h>
7 #include <fpa/Base/IncrementalRegionGrow.h>
8 #include <fpa/Image/Algorithm.h>
9
10 namespace fpa
11 {
12   namespace Image
13   {
14     /**
15      * @param I Input image type
16      * @param O Output image type
17      */
18     template< class I, class O >
19     class IncrementalRegionGrow
20       : public Algorithm< I, O, fpa::Base::IncrementalRegionGrow< typename I::IndexType, typename I::PixelType, typename O::PixelType, itk::Functor::IndexLexicographicCompare< I::ImageDimension >, itk::ImageToImageFilter< I, O > > >
21     {
22     public:
23       typedef fpa::Base::IncrementalRegionGrow< typename I::IndexType, typename I::PixelType, typename O::PixelType, itk::Functor::IndexLexicographicCompare< I::ImageDimension >, itk::ImageToImageFilter< I, O > > TBaseAlgorithm;
24
25       typedef IncrementalRegionGrow             Self;
26       typedef Algorithm< I, O, TBaseAlgorithm > Superclass;
27       typedef itk::SmartPointer< Self >         Pointer;
28       typedef itk::SmartPointer< const Self >   ConstPointer;
29
30       typedef typename Superclass::TInputImage      TInputImage;
31       typedef typename Superclass::TOutputImage     TOutputImage;
32       typedef typename Superclass::TVertex          TVertex;
33       typedef typename Superclass::TValue           TValue;
34       typedef typename Superclass::TResult          TResult;
35       typedef typename Superclass::TGrowingFunction TGrowingFunction;
36
37     protected:
38       typedef typename Superclass::_TVertices      _TVertices;
39       typedef typename Superclass::_TCollision     _TCollision;
40       typedef typename Superclass::_TCollisionsRow _TCollisionsRow;
41       typedef typename Superclass::_TCollisions    _TCollisions;
42       typedef typename Superclass::_TNode          _TNode;
43       typedef typename Superclass::_TNodes         _TNodes;
44
45     public:
46       itkNewMacro( Self );
47       itkTypeMacro( IncrementalRegionGrow, Algorithm );
48
49     protected:
50       IncrementalRegionGrow( );
51       virtual ~IncrementalRegionGrow( );
52
53       virtual void _InitResults( );
54
55     private:
56       // Purposely not implemented
57       IncrementalRegionGrow( const Self& other );
58       Self& operator=( const Self& other );
59     };
60
61   } // ecapseman
62
63 } // ecapseman
64
65 #ifndef ITK_MANUAL_INSTANTIATION
66 #include <fpa/Image/IncrementalRegionGrow.hxx>
67 #endif // ITK_MANUAL_INSTANTIATION
68
69 #endif // __FPA__IMAGE__INCREMENTALREGIONGROW__H__
70
71 // eof - $RCSfile$