X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tests%2Fimage%2FDijkstra_Gaussian.cxx;h=1e147c6102dcf56cc87aee7811ff9d2aeb104660;hb=6c0b77c2a8e3b821ccbe9c72c705fcd561bb90c2;hp=d0461ff6bb5409ddcd015ae2ef614f2c68034e81;hpb=53d56cb3d8fe139843d5b2308f821cc05e7593e1;p=FrontAlgorithms.git diff --git a/tests/image/Dijkstra_Gaussian.cxx b/tests/image/Dijkstra_Gaussian.cxx index d0461ff..1e147c6 100644 --- a/tests/image/Dijkstra_Gaussian.cxx +++ b/tests/image/Dijkstra_Gaussian.cxx @@ -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