1 #ifndef __FPA__IMAGE__REGIONGROW__H__
2 #define __FPA__IMAGE__REGIONGROW__H__
4 #include <itkFunctionBase.h>
5 #include <itkImageToImageFilter.h>
6 #include <fpa/Base/RegionGrow.h>
7 #include <fpa/Image/Algorithm.h>
14 * @param I Input image type
15 * @param O Output image type
17 template< class I, class O >
19 : public Algorithm< I, O, fpa::Base::RegionGrow< typename I::IndexType, typename I::PixelType, typename O::PixelType, itk::ImageToImageFilter< I, O > > >
22 typedef fpa::Base::RegionGrow< typename I::IndexType, typename I::PixelType, typename O::PixelType, itk::ImageToImageFilter< I, O > > TBaseAlgorithm;
24 typedef RegionGrow Self;
25 typedef Algorithm< I, O, TBaseAlgorithm > Superclass;
26 typedef itk::SmartPointer< Self > Pointer;
27 typedef itk::SmartPointer< const Self > ConstPointer;
29 typedef typename Superclass::TInputImage TInputImage;
30 typedef typename Superclass::TOutputImage TOutputImage;
31 typedef typename Superclass::TVertex TVertex;
32 typedef typename Superclass::TValue TValue;
33 typedef typename Superclass::TResult TResult;
35 typedef itk::FunctionBase< TValue, bool > TMembershipFunction;
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;
47 itkTypeMacro( RegionGrow, Algorithm );
49 itkGetObjectMacro( MembershipFunction, TMembershipFunction );
50 itkGetConstObjectMacro( MembershipFunction, TMembershipFunction );
51 itkSetObjectMacro( MembershipFunction, TMembershipFunction );
55 virtual ~RegionGrow( );
57 virtual bool _CheckMembership( const TVertex& v ) const;
58 virtual void _InitResults( );
61 // Purposely not implemented
62 RegionGrow( const Self& other );
63 Self& operator=( const Self& other );
66 typename TMembershipFunction::Pointer m_MembershipFunction;
73 #include <fpa/Image/RegionGrow.hxx>
75 #endif // __FPA__IMAGE__REGIONGROW__H__