X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=plugins%2FImageDistanceMaps%2FSignedMaurerDistanceMapImageFilter.cxx;h=237e15a07847d5bafb386c972e3eb38f1c2816e5;hb=9b11582dc5062474361432e46838c4e790c21f10;hp=5a7a0336ac04bfed6c45b2d18bbe228ca9ef16a9;hpb=9d315ac836e5fe246a8c987681085ee19898affc;p=cpPlugins.git diff --git a/plugins/ImageDistanceMaps/SignedMaurerDistanceMapImageFilter.cxx b/plugins/ImageDistanceMaps/SignedMaurerDistanceMapImageFilter.cxx index 5a7a033..237e15a 100644 --- a/plugins/ImageDistanceMaps/SignedMaurerDistanceMapImageFilter.cxx +++ b/plugins/ImageDistanceMaps/SignedMaurerDistanceMapImageFilter.cxx @@ -14,10 +14,10 @@ SignedMaurerDistanceMapImageFilter( ) this->_ConfigureInput< _TImage >( "Input", true, false ); this->_ConfigureOutput< _TImage >( "Output" ); - this->m_Parameters.ConfigureAsReal( "BackgroundValue" ); - this->m_Parameters.ConfigureAsBool( "InsideIsPositive" ); - this->m_Parameters.ConfigureAsBool( "SquaredDistance" ); - this->m_Parameters.ConfigureAsBool( "UseImageSpacing" ); + this->m_Parameters.ConfigureAsReal( "BackgroundValue", 0 ); + this->m_Parameters.ConfigureAsBool( "InsideIsPositive", true ); + this->m_Parameters.ConfigureAsBool( "SquaredDistance", false ); + this->m_Parameters.ConfigureAsBool( "UseImageSpacing", true ); std::vector< std::string > choices; #ifdef cpPlugins_CONFIG_REAL_TYPES_float @@ -27,11 +27,6 @@ SignedMaurerDistanceMapImageFilter( ) choices.push_back( "double" ); #endif // cpPlugins_CONFIG_REAL_TYPES_double this->m_Parameters.ConfigureAsChoices( "OutputResolution", choices ); - - this->m_Parameters.SetReal( "BackgroundValue", 0 ); - this->m_Parameters.SetBool( "InsideIsPositive", true ); - this->m_Parameters.SetBool( "SquaredDistance", false ); - this->m_Parameters.SetBool( "UseImageSpacing", true ); } // -------------------------------------------------------------------------