]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Image/RegionGrow.h
...
[FrontAlgorithms.git] / lib / fpa / Image / RegionGrow.h
1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5
6 #ifndef __fpa__Image__RegionGrow__h__
7 #define __fpa__Image__RegionGrow__h__
8
9 #include <fpa/Base/RegionGrow.h>
10 #include <fpa/Image/Algorithm.h>
11 #include <fpa/Image/DefaultTraits.h>
12
13 namespace fpa
14 {
15   namespace Image
16   {
17     /**
18      */
19     template< class _TInputImage, class _TOutputImage, class _TFrontId = unsigned char >
20     class RegionGrow
21       : public fpa::Base::RegionGrow< fpa::Image::Algorithm< fpa::Image::DefaultTraits< _TInputImage, _TOutputImage, _TFrontId > > >
22     {
23     public:
24       typedef _TInputImage  TInputImage;
25       typedef _TOutputImage TOutputImage;
26       typedef _TFrontId     TFrontId;
27
28       typedef fpa::Image::DefaultTraits< TInputImage, TOutputImage, TFrontId > TTraits;
29       typedef fpa::Image::Algorithm< TTraits >    TAlgorithm;
30       typedef fpa::Base::RegionGrow< TAlgorithm > Superclass;
31       typedef RegionGrow                          Self;
32       typedef itk::SmartPointer< Self >           Pointer;
33       typedef itk::SmartPointer< const Self >     ConstPointer;
34
35     public:
36       itkNewMacro( Self );
37       itkTypeMacro( fpa::Image::RegionGrow, fpa::Base::RegionGrow );
38
39     protected:
40       RegionGrow( ) : Superclass( ) { }
41       virtual ~RegionGrow( )        { }
42
43     private:
44       // Purposely not implemented.
45       RegionGrow( const Self& other );
46       Self& operator=( const Self& other );
47     };
48
49   } // ecapseman
50
51 } // ecapseman
52
53 #endif // __fpa__Image__RegionGrow__h__
54
55 // eof - $RCSfile$