X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2Ffpa%2FDataStructures%2FImage%2FMinimumSpanningTree.hxx;h=29a547ccff3e93283f65a56bfaa7d470297bcb51;hb=fb178e69a1a632a11779ca17a44d2f31b9fd9661;hp=3cba74caef3af8ea0c5b847c7245d9cd9fee2c85;hpb=2047276c8f1a02432fbcc7014722d460d6c1e60f;p=FrontAlgorithms.git diff --git a/lib/fpa/DataStructures/Image/MinimumSpanningTree.hxx b/lib/fpa/DataStructures/Image/MinimumSpanningTree.hxx index 3cba74c..29a547c 100644 --- a/lib/fpa/DataStructures/Image/MinimumSpanningTree.hxx +++ b/lib/fpa/DataStructures/Image/MinimumSpanningTree.hxx @@ -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 )