]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/ExtractBranchesFromMinimumSpanningTree.h
...
[FrontAlgorithms.git] / lib / fpa / Base / ExtractBranchesFromMinimumSpanningTree.h
index 183a7fa2774e5e1dcb6886574b65a69c0f32a0c8..cacc529c72ef942f3dfe0a0ae1d9f97d5f031043 100644 (file)
@@ -2,7 +2,7 @@
 #define __FPA__BASE__EXTRACTBRANCHESFROMMINIMUMSPANNINGTREE__H__
 
 #include <set>
-#include <fpa/Base/MatrixValuesContainer.h>
+#include <fpa/Base/VectorValuesContainer.h>
 #include <itkProcessObject.h>
 #include <itkPolyLineParametricPath.h>
 
@@ -22,13 +22,15 @@ namespace fpa
       typedef itk::SmartPointer< Self >              Pointer;
       typedef itk::SmartPointer< const Self >        ConstPointer;
 
-      typedef T                          TMinimumSpanningTree;
-      typedef typename T::TVertex        TVertex;
-      typedef typename T::TVertexCompare TVertexCompare;
-      typedef itk::PolyLineParametricPath< TVertex::Dimension >  TPath;
-      typedef fpa::Base::MatrixValuesContainer< TVertex, typename TPath::Pointer, TVertexCompare > TBranches;
+      typedef T                                  TMinimumSpanningTree;
+      typedef typename T::TVertex                             TVertex;
+      typedef typename T::TVertexCompare               TVertexCompare;
+      typedef itk::PolyLineParametricPath< TVertex::Dimension > TPath;
+      typedef std::set< TVertex, TVertexCompare >          TEndPoints;
 
-      typedef std::set< TVertex, TVertexCompare > TEndPoints;
+      typedef
+      fpa::Base::VectorValuesContainer< typename TPath::Pointer >
+      TBranches;
 
     public:
       itkNewMacro( Self );
@@ -41,7 +43,7 @@ namespace fpa
       const T* GetInput( ) const;
       void SetInput( const T* tree );
 
-      TBranches* GetOutput( );
+      TPath* GetOutput( );
 
       void ClearEndPoints( );
       void AddEndPoint( const TVertex& v );