]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/Algorithm.hxx
...
[FrontAlgorithms.git] / lib / fpa / Image / Algorithm.hxx
index 5e8605dcdd04f117c077169a3852a457f5e87945..2eda502c0236bdf6fff65d43227f57d87cbae5ae 100644 (file)
@@ -29,15 +29,6 @@ _BeforeGenerateData( )
   this->AllocateOutputs( );
 }
 
-// -------------------------------------------------------------------------
-template< class I, class O, class A >
-void fpa::Image::Algorithm< I, O, A >::
-_AfterGenerateData( )
-{
-  this->Superclass::_AfterGenerateData( );
-  this->GetMinimumSpanningTree( )->SetCollisions( this->m_Collisions );
-}
-
 // -------------------------------------------------------------------------
 template< class I, class O, class A >
 unsigned long fpa::Image::Algorithm< I, O, A >::
@@ -145,8 +136,8 @@ template< class I, class O, class A >
 void fpa::Image::Algorithm< I, O, A >::
 _SetResult( const TVertex& v, const _TNode& n )
 {
+  this->Superclass::_SetResult( v, n );
   this->GetOutput( )->SetPixel( v, n.Result );
-  this->GetMinimumSpanningTree( )->SetParent( v, n.Parent, n.FrontId );
 }
 
 #endif // __FPA__IMAGE__ALGORITHM__HXX__