]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/RegionGrow.hxx
...
[FrontAlgorithms.git] / lib / fpa / Image / RegionGrow.hxx
index 9b5b0f792ba457240aa28ecf7530d697c44b5d06..a56c919b80b2ccb7b9830be8853c08297a6c1acf 100644 (file)
@@ -22,7 +22,8 @@ void fpa::Image::RegionGrow< I, O >::
 _InitResults( )
 {
   this->Superclass::_InitResults( );
-  this->m_GrowingFunction->SetSpace( this->GetInput( ) );
+  if( this->m_GrowingFunction.IsNotNull( ) )
+    this->m_GrowingFunction->SetSpace( this->GetInput( ) );
   this->GetOutput( )->FillBuffer( this->m_OutsideValue );
 }