]> Creatis software - FrontAlgorithms.git/commitdiff
More tests
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Fri, 20 Mar 2015 04:58:19 +0000 (23:58 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Fri, 20 Mar 2015 04:58:19 +0000 (23:58 -0500)
appli/examples/example_ImageAlgorithmDijkstra_03.cxx
lib/fpa/Image/DijkstraWithSphereBacktracking.hxx

index dd3c07d130ef91e5bedf524a65c1faa9df71f2d8..9f529f1d3966cb94a0f1865638fb71f8cab77f04 100644 (file)
@@ -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 );
 }
index 69836a95e4f49a00b336ad5b6f58d3beb1a06bf1..e8f6c5174178bd85439e041ecb0caf15626dd39d 100644 (file)
@@ -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)