X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FPlugins%2FRGBImageToHSVChannelsFilter.h;h=f995835c4a29b05316fee79c0c8a00ce269ae278;hb=bc3afa8dc27d197bbe334c0b6f8650e7be435b6f;hp=bbe124a63e98a1c290d3e4b6cc1614a25a8217a2;hpb=2f1688b7490f99c3cb932344b1d8db51bd821c4b;p=cpPlugins.git diff --git a/lib/cpPlugins/Plugins/RGBImageToHSVChannelsFilter.h b/lib/cpPlugins/Plugins/RGBImageToHSVChannelsFilter.h index bbe124a..f995835 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,15 +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( - RGBImageToHSVChannelsFilter, - cpPlugins::Interface::Object - ); + CPPLUGINS_INHERIT_PROVIDER( RGBImageToHSVChannelsFilter ); } // ecapseman