X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=plugins%2FImageParaMorphologyFilters%2FBinaryErodeParaImageFilter.cxx;h=0661930b37bfc38995c57eec852566f4778b816d;hb=8d542556415c0f37a325b1641bb51b2bc284a115;hp=c03f7a668df5e55add0ede3a7c74bfdf6b711db3;hpb=3393941bf8f26babc7b592db434b40c1b747a687;p=cpPlugins.git diff --git a/plugins/ImageParaMorphologyFilters/BinaryErodeParaImageFilter.cxx b/plugins/ImageParaMorphologyFilters/BinaryErodeParaImageFilter.cxx index c03f7a6..0661930 100644 --- a/plugins/ImageParaMorphologyFilters/BinaryErodeParaImageFilter.cxx +++ b/plugins/ImageParaMorphologyFilters/BinaryErodeParaImageFilter.cxx @@ -1,26 +1,21 @@ -#include -#include +#include +#include +#include #include -#include -#include -#include -#include // ------------------------------------------------------------------------- cpPluginsImageParaMorphologyFilters::BinaryErodeParaImageFilter:: BinaryErodeParaImageFilter( ) : Superclass( ) { - this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Input", true, false ); - this->_ConfigureOutput< cpPlugins::DataObjects::Image >( "Output" ); - this->m_Parameters.ConfigureAsReal( "Radius" ); - this->m_Parameters.ConfigureAsBool( "Circular" ); - this->m_Parameters.ConfigureAsBool( "UseImageSpacing" ); - - this->m_Parameters.SetReal( "Radius", 3 ); - this->m_Parameters.SetBool( "Circular", true ); - this->m_Parameters.SetBool( "UseImageSpacing", false ); + typedef cpInstances::Image _TImage; + + this->_ConfigureInput< _TImage >( "Input", true, false ); + this->_ConfigureOutput< _TImage >( "Output" ); + this->m_Parameters.ConfigureAsReal( "Radius", 3 ); + this->m_Parameters.ConfigureAsBool( "Circular", true ); + this->m_Parameters.ConfigureAsBool( "UseImageSpacing", false ); } // ------------------------------------------------------------------------- @@ -34,8 +29,8 @@ void cpPluginsImageParaMorphologyFilters::BinaryErodeParaImageFilter:: _GenerateData( ) { auto o = this->GetInputData( "Input" ); - cpPlugins_Demangle_ImageScalars_Dims( o, _GD0 ); - else this->_Error( "No valid input image." ); + cpPlugins_Demangle_Image_ScalarPixels_AllDims_1( o, _GD0 ) + this->_Error( "No valid input image." ); } // -------------------------------------------------------------------------