X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FImage%2FRegionGrow.hxx;h=b1f5da02b5b775e10b157ed782b7a47cd1a1a71f;hb=d80032f7c6cb6cdfe9f4d85162112e8c190647d5;hp=a56c919b80b2ccb7b9830be8853c08297a6c1acf;hpb=aaeabf9e79b8db1b97bc3381e95e46c77da4d891;p=FrontAlgorithms.git diff --git a/lib/fpa/Image/RegionGrow.hxx b/lib/fpa/Image/RegionGrow.hxx index a56c919..b1f5da0 100644 --- a/lib/fpa/Image/RegionGrow.hxx +++ b/lib/fpa/Image/RegionGrow.hxx @@ -1,32 +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( ); - if( this->m_GrowingFunction.IsNotNull( ) ) - 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$