X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=plugins%2FITKParaMorphology%2FBinaryErodeParaImageFilter.cxx;fp=plugins%2FITKParaMorphology%2FBinaryErodeParaImageFilter.cxx;h=0000000000000000000000000000000000000000;hb=2e142df11d6f312a2a2b5097b8da73571ed523e8;hp=30fb4b8775d37e35ceaf1f6b9f1de57e75964733;hpb=61b3659afe961ed248f30e26f9ca8f28fcfafddc;p=cpPlugins.git diff --git a/plugins/ITKParaMorphology/BinaryErodeParaImageFilter.cxx b/plugins/ITKParaMorphology/BinaryErodeParaImageFilter.cxx deleted file mode 100644 index 30fb4b8..0000000 --- a/plugins/ITKParaMorphology/BinaryErodeParaImageFilter.cxx +++ /dev/null @@ -1,52 +0,0 @@ -#include -#include -#include - -#include - -// ------------------------------------------------------------------------- -cpPluginsITKParaMorphology::BinaryErodeParaImageFilter:: -BinaryErodeParaImageFilter( ) - : Superclass( ) -{ - typedef cpInstances::DataObjects::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 ); -} - -// ------------------------------------------------------------------------- -cpPluginsITKParaMorphology::BinaryErodeParaImageFilter:: -~BinaryErodeParaImageFilter( ) -{ -} - -// ------------------------------------------------------------------------- -void cpPluginsITKParaMorphology::BinaryErodeParaImageFilter:: -_GenerateData( ) -{ - auto o = this->GetInputData( "Input" ); - cpPlugins_Demangle_Image_ScalarPixels_AllDims_1( o, _GD0 ) - this->_Error( "No valid input image." ); -} - -// ------------------------------------------------------------------------- -template< class _TImage > -void cpPluginsITKParaMorphology::BinaryErodeParaImageFilter:: -_GD0( _TImage* image ) -{ - typedef itk::BinaryErodeParaImageFilter< _TImage > _TFilter; - - auto filter = this->_CreateITK< _TFilter >( ); - filter->SetInput( image ); - filter->SetRadius( this->m_Parameters.GetReal( "Radius" ) ); - filter->SetCircular( this->m_Parameters.GetBool( "Circular" ) ); - filter->SetUseImageSpacing( this->m_Parameters.GetBool( "UseImageSpacing" ) ); - filter->Update( ); - this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) ); -} - -// eof - $RCSfile$