]> Creatis software - FrontAlgorithms.git/commitdiff
access to the final skeleton updated
authorOrkisz <maciej.orkisz@creatis.insa-lyon.fr>
Tue, 24 Mar 2015 22:30:14 +0000 (23:30 +0100)
committerOrkisz <maciej.orkisz@creatis.insa-lyon.fr>
Tue, 24 Mar 2015 22:30:14 +0000 (23:30 +0100)
appli/examples/example_ImageAlgorithm_Skeletonization.cxx

index 109d1d1956ddffe062b9107082ed27681ccf245d..22b85e773ec9b5ead755e23d76f51a3c8b44fe04 100644 (file)
@@ -186,7 +186,7 @@ int main( int argc, char* argv[] )
     vtkSmartPointer< vtkFloatArray >::New( );
 
   const TDijkstra::TVertices& endpoints = paths->GetEndPoints( );
-  const TDijkstra::TTree& tree = paths->GetFinalTree( );
+  const TDijkstra::TTree& tree = paths->GetFullTree( );
   TDijkstra::TVertices::const_iterator epIt = endpoints.begin( );
   for( unsigned int epId = 0; epIt != endpoints.end( ); ++epIt, ++epId )
   {
@@ -207,9 +207,9 @@ int main( int argc, char* argv[] )
         cells->InsertCellPoint( points->GetNumberOfPoints( ) - 1 );
 
       } // fi
-      idx = tree.find( idx )->second;
+         idx = tree.find( idx )->second.first;
 
-    } while( idx != tree.find( idx )->second );
+    } while( idx != tree.find( idx )->second.first );
 
   } // rof