]> Creatis software - FrontAlgorithms.git/blobdiff - tests/image/Dijkstra_Gaussian.cxx
...
[FrontAlgorithms.git] / tests / image / Dijkstra_Gaussian.cxx
index d0461ff6bb5409ddcd015ae2ef614f2c68034e81..1e147c6102dcf56cc87aee7811ff9d2aeb104660 100644 (file)
@@ -17,12 +17,12 @@ typedef fpa::Image::Functors::Dijkstra::Gaussian< TInputImage, TScalar > TWeight
 int main( int argc, char* argv[] )
 {
   // Get arguments
-  if( argc < 8 )
+  if( argc < 7 )
   {
     std::cerr
       << "Usage: " << argv[ 0 ]
       << " input_image output_image output_marks alpha beta"
-      << " stop_at_one_front visual_debug ..."
+      << " stop_at_one_front ..."
       << std::endl;
     return( 1 );
 
@@ -33,7 +33,6 @@ int main( int argc, char* argv[] )
   double alpha = std::atoi( argv[ 4 ] );
   double beta = std::atoi( argv[ 5 ] );
   bool stop_at_one_front = ( argv[ 6 ][ 0 ] == '1' );
-  bool visual_debug = ( argv[ 7 ][ 0 ] == '1' );
 
   // Create image
   TInputImage::Pointer image;
@@ -45,15 +44,6 @@ int main( int argc, char* argv[] )
 
   } // fi
 
-  // Interact with image
-  fpa::tests::image::Viewer< TFilter > viewer( image );
-  if( visual_debug )
-  {
-    viewer.ActivateSeedWidget( );
-    viewer.Show( );
-
-  } // fi
-
   // Prepare weight
   TWeight::Pointer weight = TWeight::New( );
   weight->SetAlpha( alpha );
@@ -66,7 +56,7 @@ int main( int argc, char* argv[] )
   filter->SetStopAtOneFront( stop_at_one_front );
 
   // Get all seeds
-  for( int i = 8; i < argc; i += 2 )
+  for( int i = 7; i < argc; i += 2 )
   {
     if( i + 1 < argc )
     {
@@ -78,11 +68,8 @@ int main( int argc, char* argv[] )
     } // fi
 
   } // rof
-  viewer.AssociateSeedsTo( filter );
 
-  // Prepare visual debug and update
-  if( visual_debug )
-    viewer.ObserveFilter( filter );
+  // Execute filter
   filter->Update( );
 
   // Save results