]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/ImageSkeleton.hxx
On my way... it does not work yet, but I think I'm on the good track.
[FrontAlgorithms.git] / lib / fpa / Base / ImageSkeleton.hxx
index cd2daec2c66a0aab5f2ac974797dd9d353dc42d9..96257958d259d52dadf6c20b44bc6af0d4ea72e9 100644 (file)
@@ -22,13 +22,11 @@ AddBranch( const TVertex& a, const TVertex& b )
   typename TPath::Pointer path = TPath::New( );
   for( auto vIt = vertices.begin( ); vIt != vertices.end( ); ++vIt )
     path->AddVertex( *vIt );
-  
+
   // Assign path vertices
   path->SetReferenceImage( this->m_MinimumSpanningTree );
   this->Get( )[ a ][ b ] = path;
-
-  // Create symmetric path
-  this->AddBranch( b, a );
+  this->Modified( );
 }
 
 // -------------------------------------------------------------------------
@@ -37,9 +35,6 @@ const typename fpa::Base::ImageSkeleton< _TMST >::
 TPath* fpa::Base::ImageSkeleton< _TMST >::
 GetBranch( const TVertex& a, const TVertex& b ) const
 {
-  if( this->m_MinimumSpanningTree.IsNull( ) )
-    return( NULL );
-
   auto aIt = this->Get( ).find( a );
   if( aIt != this->Get( ).end( ) )
   {