X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=plugins%2FPlugins%2FInvertCost.cxx;h=4abfe339c4b80a04c13ae0c39c5baedcc7c51d5c;hb=3e69c5942ef8dd71c4e25da906eac97ffb63a79d;hp=488e88cc420de270cac4dbef28cb76ac61eb4ecb;hpb=49c5386438703b6a4303a2fca216b6acb9e36f33;p=FrontAlgorithms.git diff --git a/plugins/Plugins/InvertCost.cxx b/plugins/Plugins/InvertCost.cxx index 488e88c..4abfe33 100644 --- a/plugins/Plugins/InvertCost.cxx +++ b/plugins/Plugins/InvertCost.cxx @@ -1,5 +1,5 @@ #include -#include +#include #include @@ -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$