]> Creatis software - FrontAlgorithms.git/blobdiff - appli/CTBronchi/RandomWalker.cxx
...
[FrontAlgorithms.git] / appli / CTBronchi / RandomWalker.cxx
index 57045586197710f4909a850f1bff2a35380c027a..561dd36e4b1a1af80601cb686c0cf01d20e6aed5 100644 (file)
@@ -29,12 +29,12 @@ typedef ivq::ITK::ImageUnaryFunctionFilter< TLabelImage, TBinaryImage > TLabelEx
 int main( int argc, char* argv[] )
 {
   // Get arguments
-  if( argc < 7 )
+  if( argc < 6 )
   {
     std::cerr
       << "Usage: " << argv[ 0 ] << std::endl
       << "   input_image label_image output_image" << std::endl
-      << "   label alpha(0) beta(100)"
+      << "   label beta(100)"
       << std::endl;
     return( 1 );
 
@@ -43,8 +43,7 @@ int main( int argc, char* argv[] )
   std::string label_image_filename = argv[ 2 ];
   std::string output_image_filename = argv[ 3 ];
   TLabel label = TLabel( std::atoi( argv[ 4 ] ) );
-  double alpha = std::atof( argv[ 5 ] );
-  double beta = std::atof( argv[ 6 ] );
+  double beta = std::atof( argv[ 5 ] );
 
   // Read images
   itk::ImageFileReader< TInputImage >::Pointer input_image_reader =
@@ -57,7 +56,6 @@ int main( int argc, char* argv[] )
 
   // Prepare weight
   TWeight::Pointer weight = TWeight::New( );
-  weight->SetAlpha( alpha );
   weight->SetBeta( beta );
 
   // Prepare filter