]> Creatis software - FrontAlgorithms.git/blobdiff - appli/examples/example_Image_RegionGrow_GaussianModelEstimation.cxx
Gaussian estimation region grow updated
[FrontAlgorithms.git] / appli / examples / example_Image_RegionGrow_GaussianModelEstimation.cxx
index 2d278783ecbfe66bb98c7cf91d24e0f3348d3e96..914e3fa45d077cc6ce25e0bd685fd349e57bf530 100644 (file)
@@ -41,7 +41,7 @@ int main( int argc, char* argv[] )
   {
     std::cerr
       << "Usage: " << argv[ 0 ]
-      << " input_image neighborhood_order support"
+      << " input_image neighborhood_order support [model_file]"
       << std::endl;
     return( 1 );
 
@@ -123,7 +123,9 @@ int main( int argc, char* argv[] )
   typedef fpa::Image::Functors::GaussianModelEstimatorFunction< TColorImage, TScalar > TFunction;
   TFunction::Pointer function = TFunction::New( );
   function->SetModelSupport( support );
-
+  if( argc > 4 )
+    function->LoadModelFromFile( argv[ 4 ] );
+  
   // Prepare region grow filter
   typedef fpa::Image::RegionGrow< TColorImage, TImage > TFilter;
   TFilter::Pointer filter = TFilter::New( );