]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/DataStructures/Image/MinimumSpanningTree.hxx
...
[FrontAlgorithms.git] / lib / fpa / DataStructures / Image / MinimumSpanningTree.hxx
index 3cba74caef3af8ea0c5b847c7245d9cd9fee2c85..29a547ccff3e93283f65a56bfaa7d470297bcb51 100644 (file)
@@ -25,14 +25,11 @@ SetParent( const TVertex& v, const TVertex& p )
 // -------------------------------------------------------------------------
 template< unsigned int _VDim >
 void fpa::DataStructures::Image::MinimumSpanningTree< _VDim >::
-GetPolyLineParametricPath(
-  typename TPolyLineParametricPath::Pointer& path,
-  const TVertex& a
-  ) const
+GetPath( typename TPath::Pointer& path, const TVertex& a ) const
 {
-  TVertices v = this->GetPath( a );
+  TVertices v = this->GetAxis( a );
   if( path.IsNull( ) )
-    path = TPolyLineParametricPath::New( );
+    path = TPath::New( );
   path->SetReferenceImage( this );
   typename TVertices::const_iterator vIt = v.begin( );
   for( ; vIt != v.end( ); ++vIt )
@@ -42,14 +39,13 @@ GetPolyLineParametricPath(
 // -------------------------------------------------------------------------
 template< unsigned int _VDim >
 void fpa::DataStructures::Image::MinimumSpanningTree< _VDim >::
-GetPolyLineParametricPath(
-  typename TPolyLineParametricPath::Pointer& path,
-  const TVertex& a, const TVertex& b
+GetPath(
+  typename TPath::Pointer& path, const TVertex& a, const TVertex& b
   ) const
 {
-  TVertices v = this->GetPath( a, b );
+  TVertices v = this->GetAxis( a, b );
   if( path.IsNull( ) )
-    path = TPolyLineParametricPath::New( );
+    path = TPath::New( );
   path->SetReferenceImage( this );
   typename TVertices::const_iterator vIt = v.begin( );
   for( ; vIt != v.end( ); ++vIt )