From: Leonardo Florez-Valencia Date: Fri, 20 Mar 2015 04:58:19 +0000 (-0500) Subject: More tests X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=69fcf031d34ee56355b7dd48f1c2a7d8e2d925fb;p=FrontAlgorithms.git More tests --- diff --git a/appli/examples/example_ImageAlgorithmDijkstra_03.cxx b/appli/examples/example_ImageAlgorithmDijkstra_03.cxx index dd3c07d..9f529f1 100644 --- a/appli/examples/example_ImageAlgorithmDijkstra_03.cxx +++ b/appli/examples/example_ImageAlgorithmDijkstra_03.cxx @@ -292,13 +292,11 @@ int main( int argc, char* argv[] ) marks_writer->SetFileName( output_image_fn ); marks_writer->Update( ); - /* TODO - TImageWriter::Pointer dijkstra_writer = - TImageWriter::New( ); - dijkstra_writer->SetInput( paths->GetOutput( ) ); - dijkstra_writer->SetFileName( "dijkstra.mhd" ); - dijkstra_writer->Update( ); - */ + TImageWriter::Pointer dijkstra_writer = + TImageWriter::New( ); + dijkstra_writer->SetInput( paths->GetOutput( ) ); + dijkstra_writer->SetFileName( "dijkstra.mhd" ); + dijkstra_writer->Update( ); return( 0 ); } diff --git a/lib/fpa/Image/DijkstraWithSphereBacktracking.hxx b/lib/fpa/Image/DijkstraWithSphereBacktracking.hxx index 69836a9..e8f6c51 100644 --- a/lib/fpa/Image/DijkstraWithSphereBacktracking.hxx +++ b/lib/fpa/Image/DijkstraWithSphereBacktracking.hxx @@ -153,6 +153,7 @@ _AfterMainLoop( ) // Keep endpoint if( marks->GetPixel( max_vertex ) != 0 ) continue; + this->m_EndPoints.push_back( max_vertex ); // Construct path (at least the part that hasn't been iterated)