X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FImage%2FRegionGrow.hxx;h=b1f5da02b5b775e10b157ed782b7a47cd1a1a71f;hb=d80032f7c6cb6cdfe9f4d85162112e8c190647d5;hp=9b5b0f792ba457240aa28ecf7530d697c44b5d06;hpb=015105c2f44abb80923a59adfb1a01713506744f;p=FrontAlgorithms.git diff --git a/lib/fpa/Image/RegionGrow.hxx b/lib/fpa/Image/RegionGrow.hxx index 9b5b0f7..b1f5da0 100644 --- a/lib/fpa/Image/RegionGrow.hxx +++ b/lib/fpa/Image/RegionGrow.hxx @@ -1,31 +1,34 @@ -#ifndef __FPA__IMAGE__REGIONGROW__HXX__ -#define __FPA__IMAGE__REGIONGROW__HXX__ +#ifndef __fpa__Image__RegionGrow__hxx__ +#define __fpa__Image__RegionGrow__hxx__ // ------------------------------------------------------------------------- -template< class I, class O > -fpa::Image::RegionGrow< I, O >:: +template< class _TInputImage, class _TOutputImage > +fpa::Image::RegionGrow< _TInputImage, _TOutputImage >:: RegionGrow( ) : Superclass( ) { } // ------------------------------------------------------------------------- -template< class I, class O > -fpa::Image::RegionGrow< I, O >:: +template< class _TInputImage, class _TOutputImage > +fpa::Image::RegionGrow< _TInputImage, _TOutputImage >:: ~RegionGrow( ) { } // ------------------------------------------------------------------------- -template< class I, class O > -void fpa::Image::RegionGrow< I, O >:: -_InitResults( ) +template< class _TInputImage, class _TOutputImage > +void fpa::Image::RegionGrow< _TInputImage, _TOutputImage >:: +_BeforeGenerateData( ) { - this->Superclass::_InitResults( ); - this->m_GrowingFunction->SetSpace( this->GetInput( ) ); - this->GetOutput( )->FillBuffer( this->m_OutsideValue ); + this->Superclass::_BeforeGenerateData( ); + + TGrowFunction* grow = + dynamic_cast< TGrowFunction* >( this->GetGrowFunction( ) ); + if( grow != NULL ) + grow->SetImage( this->GetInput( ) ); } -#endif // __FPA__IMAGE__REGIONGROW__HXX__ +#endif // __fpa__Image__RegionGrow__hxx__ // eof - $RCSfile$