]> Creatis software - FrontAlgorithms.git/blobdiff - tests/image/RandomWalker/Gaussian.cxx
...
[FrontAlgorithms.git] / tests / image / RandomWalker / Gaussian.cxx
index 82d44aeddee6aca97825a7352852db4ddb4da684..5c2c798d60cc81c9a3ff9e0847b4649825794b9e 100644 (file)
@@ -25,7 +25,7 @@ int main( int argc, char* argv[] )
   {
     std::cerr
       << "Usage: " << argv[ 0 ]
-      << " input_image input_label output_image output_costs alpha beta"
+      << " input_image input_label output_image output_costs beta epsilon"
       << std::endl;
     return( 1 );
 
@@ -34,8 +34,8 @@ int main( int argc, char* argv[] )
   std::string input_label_filename = argv[ 2 ];
   std::string output_image_filename = argv[ 3 ];
   std::string output_costs_filename = argv[ 4 ];
-  double alpha = std::atof( argv[ 5 ] );
-  double beta = std::atof( argv[ 6 ] );
+  double beta = std::atof( argv[ 5 ] );
+  double eps = std::atof( argv[ 6 ] );
 
   // Read image
   typedef itk::ImageFileReader< TImage > TImageReader;
@@ -50,8 +50,8 @@ int main( int argc, char* argv[] )
   // Prepare weight functor
   typedef fpa::Functors::Dijkstra::Image::Gaussian< TImage, TCost > TWeight;
   TWeight::Pointer weight = TWeight::New( );
-  weight->SetAlpha( alpha );
   weight->SetBeta( beta );
+  weight->SetEpsilon( eps );
 
   // Prepare filter
   typedef fpa::Filters::Image::RandomWalker< TImage, TLabelImage, TCost > TFilter;