]> Creatis software - FrontAlgorithms.git/blobdiff - tests/image/Dijkstra/Gaussian.cxx
...
[FrontAlgorithms.git] / tests / image / Dijkstra / Gaussian.cxx
index 3139e836c8ddb925ba897072c51f60985901b626..ef6d8274e5f706c69f2fec1fe221598f1cf3268b 100644 (file)
@@ -24,7 +24,8 @@ int main( int argc, char* argv[] )
   {
     std::cerr
       << "Usage: " << argv[ 0 ]
-      << " input_image output_image output_marks output_mst alpha beta [seeds]"
+      << " input_image output_image output_marks output_mst"
+      << " beta epsilon [seeds]"
       << std::endl;
     return( 1 );
 
@@ -33,8 +34,8 @@ int main( int argc, char* argv[] )
   std::string output_image_filename = argv[ 2 ];
   std::string output_marks_filename = argv[ 3 ];
   std::string output_mst_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< TInputImage > TInputImageReader;
@@ -44,8 +45,8 @@ int main( int argc, char* argv[] )
   // Prepare weight functor
   typedef fpa::Functors::Dijkstra::Image::Gaussian< TInputImage, TOutputPixel > TWeight;
   TWeight::Pointer weight = TWeight::New( );
-  weight->SetAlpha( alpha );
   weight->SetBeta( beta );
+  weight->SetEpsilon( eps );
 
   // Prepare filter
   typedef fpa::Filters::Image::Dijkstra< TInputImage, TOutputImage > TFilter;