X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2Ffpa%2FImage%2FRegionGrow.h;h=ad41e80a2dbea689573b407e36c3ea2c23b03b22;hb=86a6d5df2aa1aa5292a5fa851d98bfc13939bdf3;hp=cf05dd1ed2e869cb69eb79a54b8105d0eb1a2571;hpb=56b8bb48cc05a297a3faa264f8f2a88de21ef203;p=FrontAlgorithms.git diff --git a/lib/fpa/Image/RegionGrow.h b/lib/fpa/Image/RegionGrow.h index cf05dd1..ad41e80 100644 --- a/lib/fpa/Image/RegionGrow.h +++ b/lib/fpa/Image/RegionGrow.h @@ -1,5 +1,5 @@ -#ifndef __FPA__IMAGE__REGIONGROW__H__ -#define __FPA__IMAGE__REGIONGROW__H__ +#ifndef __fpa__Image__RegionGrow__h__ +#define __fpa__Image__RegionGrow__h__ #include #include @@ -10,26 +10,34 @@ namespace fpa { /** */ - template< class _TInputImage, class _TOutputImage = _TInputImage > + template< class _TInputImage, class _TOutputImage > class RegionGrow : public fpa::Base::RegionGrow< fpa::Image::Algorithm< _TInputImage, _TOutputImage > > { public: - typedef fpa::Base::RegionGrow< fpa::Image::Algorithm< _TInputImage, _TOutputImage > > Superclass; - typedef RegionGrow Self; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; + typedef fpa::Image::Algorithm< _TInputImage, _TOutputImage > TAlgorithm; + typedef RegionGrow Self; + typedef fpa::Base::RegionGrow< TAlgorithm > Superclass; + typedef itk::SmartPointer< Self > Pointer; + typedef itk::SmartPointer< const Self > ConstPointer; + + typedef typename Superclass::TOutput TOutput; + typedef typename Superclass::TVertex TVertex; + + typedef fpa::Image::Functors::Base< _TInputImage, typename Superclass::TGrowFunction > TGrowFunction; public: itkNewMacro( Self ); - itkTypeMacro( RegionGrow, fpa::Base::RegionGrow ); + itkTypeMacro( fpa::Image::RegionGrow, fpa::Base::RegionGrow ); protected: RegionGrow( ); virtual ~RegionGrow( ); + virtual void _BeforeGenerateData( ) fpa_OVERRIDE; + private: - // Purposely not implemented + // Purposely not defined RegionGrow( const Self& other ); Self& operator=( const Self& other ); }; @@ -40,8 +48,8 @@ namespace fpa #ifndef ITK_MANUAL_INSTANTIATION # include -#endif +#endif // ITK_MANUAL_INSTANTIATION -#endif // __FPA__IMAGE__REGIONGROW__H__ +#endif // __fpa__Image__RegionGrow__h__ // eof - $RCSfile$