]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/ExtractBranchesFromMinimumSpanningTree.h
...
[FrontAlgorithms.git] / lib / fpa / Base / ExtractBranchesFromMinimumSpanningTree.h
index 985d339f5b851a7ca2f4592d774a16f23a70232f..183a7fa2774e5e1dcb6886574b65a69c0f32a0c8 100644 (file)
@@ -4,6 +4,7 @@
 #include <set>
 #include <fpa/Base/MatrixValuesContainer.h>
 #include <itkProcessObject.h>
+#include <itkPolyLineParametricPath.h>
 
 namespace fpa
 {
@@ -24,10 +25,8 @@ namespace fpa
       typedef T                          TMinimumSpanningTree;
       typedef typename T::TVertex        TVertex;
       typedef typename T::TVertexCompare TVertexCompare;
-      typedef std::vector< TVertex >     TPath;
-      typedef
-      fpa::Base::MatrixValuesContainer< TVertex, TPath, TVertexCompare >
-      TBranches;
+      typedef itk::PolyLineParametricPath< TVertex::Dimension >  TPath;
+      typedef fpa::Base::MatrixValuesContainer< TVertex, typename TPath::Pointer, TVertexCompare > TBranches;
 
       typedef std::set< TVertex, TVertexCompare > TEndPoints;