]> Creatis software - FrontAlgorithms.git/blobdiff - plugins/Plugins/InvertCost.cxx
...
[FrontAlgorithms.git] / plugins / Plugins / InvertCost.cxx
index fe77e0faa80d890e4ea3ee59031163eb07b38f00..4abfe339c4b80a04c13ae0c39c5baedcc7c51d5c 100644 (file)
@@ -1,8 +1,7 @@
-#include <plugins/Plugins/InvertCost.h>
-#include <cpPlugins/DataObjects/Image.h>
+#include <Plugins/InvertCost.h>
+#include <cpInstances/Image.h>
 
 #include <fpa/Base/Functors/Inverse.h>
-#include <fpa/Base/Functors/Inverse.hxx>
 
 // -------------------------------------------------------------------------
 fpaPlugins::InvertCost::
@@ -16,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" );
 }
 
@@ -50,6 +50,7 @@ _GD0( )
     out->SetITK( f );
 
   } // fi
+  f->SetNegativeValue( this->m_Parameters.GetReal( "NegativeValue" ) );
 }
 
 // eof - $RCSfile$