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( );
}
// -------------------------------------------------------------------------
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( ) )
{