X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FAlgorithms%2FImageFunctionFilter.h;fp=lib%2FcpExtensions%2FAlgorithms%2FImageFunctionFilter.h;h=0000000000000000000000000000000000000000;hb=2e142df11d6f312a2a2b5097b8da73571ed523e8;hp=503f791355862e362a7e3d59fb371f708954b1a4;hpb=61b3659afe961ed248f30e26f9ca8f28fcfafddc;p=cpPlugins.git diff --git a/lib/cpExtensions/Algorithms/ImageFunctionFilter.h b/lib/cpExtensions/Algorithms/ImageFunctionFilter.h deleted file mode 100644 index 503f791..0000000 --- a/lib/cpExtensions/Algorithms/ImageFunctionFilter.h +++ /dev/null @@ -1,69 +0,0 @@ -// ------------------------------------------------------------------------- -// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co) -// ------------------------------------------------------------------------- - -#ifndef __CPEXTENSIONS__ALGORITHMS__IMAGEFUNCTIONFILTER__H__ -#define __CPEXTENSIONS__ALGORITHMS__IMAGEFUNCTIONFILTER__H__ - -#include -#include - -namespace cpExtensions -{ - namespace Algorithms - { - /** - */ - template< class _TInput, class _TOutput, class _TFunction > - class ImageFunctionFilter - : public itk::ImageToImageFilter< _TInput, _TOutput > - { - public: - typedef ImageFunctionFilter Self; - typedef itk::ImageToImageFilter< _TInput, _TOutput > Superclass; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; - - typedef _TInput TInput; - typedef _TOutput TOutput; - typedef _TFunction TFunction; - - typedef typename TOutput::RegionType TRegion; - - public: - itkNewMacro( Self ); - itkTypeMacro( ImageFunctionFilter, itkImageToImageFilter ); - - itkGetObjectMacro( Function, TFunction ); - itkSetObjectMacro( Function, TFunction ); - - protected: - ImageFunctionFilter( ); - virtual ~ImageFunctionFilter( ); - - virtual void BeforeThreadedGenerateData( ) cpExtensions_OVERRIDE; - virtual void ThreadedGenerateData( - const TRegion& region, - itk::ThreadIdType threadId - ) cpExtensions_OVERRIDE; - - private: - // Purposely not implemented. - ImageFunctionFilter( const Self& ); - void operator=( const Self& ); - - protected: - typename TFunction::Pointer m_Function; - }; - - } // ecapseman - -} // ecapseman - -#ifndef ITK_MANUAL_INSTANTIATION -# include -#endif // ITK_MANUAL_INSTANTIATION - -#endif // __CPEXTENSIONS__ALGORITHMS__IMAGEFUNCTIONFILTER__H__ - -// eof - $RCSfile$