]> Creatis software - FrontAlgorithms.git/blobdiff - tests/image/RegionGrow_Tautology.cxx
...
[FrontAlgorithms.git] / tests / image / RegionGrow_Tautology.cxx
index 7cdffa53628c5109e54d2303be412053adec7691..d19969b735bb7a034066f9ff9e8fd5895ed43ceb 100644 (file)
@@ -15,11 +15,11 @@ typedef fpa::Base::Functors::RegionGrow::Tautology< TPixel > TPredicate;
 int main( int argc, char* argv[] )
 {
   // Get arguments
-  if( argc < 6 )
+  if( argc < 5 )
   {
     std::cerr
       << "Usage: " << argv[ 0 ]
-      << " output_image output_marks width height visual_debug ..."
+      << " output_image output_marks width height ..."
       << std::endl;
     return( 1 );
 
@@ -28,21 +28,11 @@ int main( int argc, char* argv[] )
   std::string output_marks_filename = argv[ 2 ];
   int width = std::atoi( argv[ 3 ] );
   int height = std::atoi( argv[ 4 ] );
-  bool visual_debug = ( argv[ 5 ][ 0 ] == '1' );
 
   // Create image
   TImage::Pointer image;
   fpa::tests::image::CreateImage( image, 0, width, height, 1.0, 1.0 );
 
-  // Interact with image
-  fpa::tests::image::Viewer< TFilter > viewer( image );
-  if( visual_debug )
-  {
-    viewer.ActivateSeedWidget( );
-    viewer.Show( );
-
-  } // fi
-
   // Prepare predicate
   TPredicate::Pointer predicate = TPredicate::New( );
 
@@ -66,11 +56,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