]> Creatis software - FrontAlgorithms.git/blobdiff - plugins/Plugins/InvertCost.cxx
...
[FrontAlgorithms.git] / plugins / Plugins / InvertCost.cxx
index 488e88cc420de270cac4dbef28cb76ac61eb4ecb..d50676a95888fca021da134e7b11ba72509cfa9c 100644 (file)
@@ -15,6 +15,7 @@ InvertCost( )
   choices.push_back( "float" );
   choices.push_back( "double" );
   this->m_Parameters.ConfigureAsChoices( "ResultType", choices );
+  this->m_Parameters.ConfigureAsReal( "NegativeValue", -1 );
   this->m_Parameters.SetSelectedChoice( "ResultType", "float" );
 }
 
@@ -49,6 +50,7 @@ _GD0( )
     out->SetITK( f );
 
   } // fi
+  f->SetNegativeValue( this->m_Parameters.GetReal( "NegativeValue" ) );
 }
 
 // eof - $RCSfile$