]> Creatis software - cpPlugins.git/blobdiff - plugins/ITKUnaryFunctorFilters/UnaryBooleanImageFilter.cxx
Moved to version 1.0
[cpPlugins.git] / plugins / ITKUnaryFunctorFilters / UnaryBooleanImageFilter.cxx
diff --git a/plugins/ITKUnaryFunctorFilters/UnaryBooleanImageFilter.cxx b/plugins/ITKUnaryFunctorFilters/UnaryBooleanImageFilter.cxx
deleted file mode 100644 (file)
index 8c28321..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-#include <ITKUnaryFunctorFilters/UnaryBooleanImageFilter.h>
-#include <cpInstances/DataObjects/Image.h>
-
-#include <itkNotImageFilter.h>
-
-// -------------------------------------------------------------------------
-cpPluginsITKUnaryFunctorFilters::UnaryBooleanImageFilter::
-UnaryBooleanImageFilter( )
-  : Superclass( )
-{
-  typedef cpInstances::DataObjects::Image _TImage;
-
-  this->_ConfigureInput< _TImage >( "Input", true, false );
-  this->_ConfigureOutput< _TImage >( "Output" );
-
-  std::vector< std::string > choices;
-  choices.push_back( "Not" );
-  this->m_Parameters.ConfigureAsChoices( "Operator", choices );
-}
-
-// -------------------------------------------------------------------------
-cpPluginsITKUnaryFunctorFilters::UnaryBooleanImageFilter::
-~UnaryBooleanImageFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-void cpPluginsITKUnaryFunctorFilters::UnaryBooleanImageFilter::
-_GenerateData( )
-{
-  auto o = this->GetInputData( "Input" );
-  cpPlugins_Demangle_Image_IntPixels_AllDims_1( o, _GD0 )
-    this->_Error( "Invalid input image." );
-}
-
-// -------------------------------------------------------------------------
-template< class _TImage >
-void cpPluginsITKUnaryFunctorFilters::UnaryBooleanImageFilter::
-_GD0( _TImage* image )
-{
-  typedef itk::NotImageFilter< _TImage, _TImage > _TFilter;
-
-  auto filter = this->_CreateITK< _TFilter >( );
-  filter->SetInput( image );
-  filter->Update( );
-  this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
-}
-
-// eof - $RCSfile$