X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FAlgorithms%2FImageFunctorFilter.h;fp=lib%2FcpExtensions%2FAlgorithms%2FImageFunctorFilter.h;h=0000000000000000000000000000000000000000;hb=2e142df11d6f312a2a2b5097b8da73571ed523e8;hp=c1a32b08df3962feea796a2c9810439c00bd98ef;hpb=61b3659afe961ed248f30e26f9ca8f28fcfafddc;p=cpPlugins.git diff --git a/lib/cpExtensions/Algorithms/ImageFunctorFilter.h b/lib/cpExtensions/Algorithms/ImageFunctorFilter.h deleted file mode 100644 index c1a32b0..0000000 --- a/lib/cpExtensions/Algorithms/ImageFunctorFilter.h +++ /dev/null @@ -1,68 +0,0 @@ -// ------------------------------------------------------------------------- -// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co) -// ------------------------------------------------------------------------- - -#ifndef __cpExtensions__Algorithms__ImageFunctorFilter__h__ -#define __cpExtensions__Algorithms__ImageFunctorFilter__h__ - -#include -#include - -namespace cpExtensions -{ - namespace Algorithms - { - /** - */ - template< class _TInputImage, class _TOutputImage > - class ImageFunctorFilter - : public itk::ImageToImageFilter< I, O > - { - public: - typedef ImageFunctorFilter Self; - typedef itk::ImageToImageFilter< I, O > Superclass; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; - - typedef _TInputImage TInputImage; - typedef _TOutputImage TOutputImage; - typedef typename TInputImage::PixelType TInputPixel; - typedef typename TOutputImage::PixelType TOutputPixel; - typedef typename TOutputImage::RegionType TRegion; - - typedef itk::FunctionBase< TInputPixel, TOutputPixel > TFunctor; - - public: - itkNewMacro( Self ); - itkTypeMacro( ImageFunctorFilter, itkImageToImageFilter ); - - itkGetObjectMacro( Functor, TFunctor ); - itkGetConstObjectMacro( Functor, TFunctor ); - itkSetObjectMacro( Functor, TFunctor ); - - protected: - ImageFunctorFilter( ); - virtual ~ImageFunctorFilter( ); - - virtual void ThreadedGenerateData( const TRegion& region, itk::ThreadIdType threadId ) override; - - private: - // Purposely not implemented. - ImageFunctorFilter( const Self& ); - void operator=( const Self& ); - - protected: - typename TFunctor::Pointer m_Functor; - }; - - } // ecapseman - -} // ecapseman - -#ifndef ITK_MANUAL_INSTANTIATION -# include -#endif // ITK_MANUAL_INSTANTIATION - -#endif // __cpExtensions__Algorithms__ImageFunctorFilter__h__ - -// eof - $RCSfile$