X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FPlugins%2FRGBImageToHSVChannelsFilter.h;h=d9fe353a84ec9e1f9a08621d762988ce4d5bce06;hb=cb833d2fface96e020fe91584d2206860a8174ee;hp=bbe124a63e98a1c290d3e4b6cc1614a25a8217a2;hpb=2f1688b7490f99c3cb932344b1d8db51bd821c4b;p=cpPlugins.git diff --git a/lib/cpPlugins/Plugins/RGBImageToHSVChannelsFilter.h b/lib/cpPlugins/Plugins/RGBImageToHSVChannelsFilter.h index bbe124a..d9fe353 100644 --- a/lib/cpPlugins/Plugins/RGBImageToHSVChannelsFilter.h +++ b/lib/cpPlugins/Plugins/RGBImageToHSVChannelsFilter.h @@ -3,7 +3,6 @@ #include #include -#include namespace cpPlugins { @@ -17,17 +16,26 @@ namespace cpPlugins public: typedef RGBImageToHSVChannelsFilter Self; typedef cpPlugins::Interface::ImageToImageFilter Superclass; + typedef itk::SmartPointer< Self > Pointer; + typedef itk::SmartPointer< const Self > ConstPointer; typedef Superclass::TParameter TParameter; typedef Superclass::TParameters TParameters; public: - RGBImageToHSVChannelsFilter( ); - virtual ~RGBImageToHSVChannelsFilter( ); + itkNewMacro( Self ); + itkTypeMacro( + RGBImageToHSVChannelsFilter, + cpPluginsInterfaceImageToImageFilter + ); + public: virtual std::string GetClassName( ) const; protected: + RGBImageToHSVChannelsFilter( ); + virtual ~RGBImageToHSVChannelsFilter( ); + virtual std::string _GenerateData( ); template< unsigned int D > @@ -36,12 +44,14 @@ namespace cpPlugins template< class P, unsigned int D > std::string _GD1( ); - protected: - itk::ProcessObject::Pointer m_Filter; + private: + // Purposely not implemented + RGBImageToHSVChannelsFilter( const Self& ); + Self& operator=( const Self& ); }; // --------------------------------------------------------------------- - PLUMA_INHERIT_PROVIDER( + PLUMA_INHERIT_PROVIDER_CPPLUGINS( RGBImageToHSVChannelsFilter, cpPlugins::Interface::Object );