#include <cpPlugins/Plugins/RGBImageToHSVChannelsFilter.h>
#include <cpPlugins/Interface/Image.h>
-#include <cpPlugins/Extensions/Algorithms/RGBImageToHSVChannelsFilter.h>
+#include <cpPlugins/Extensions/Algorithms/RGBImageToOtherChannelsFilter.h>
+#include <cpPlugins/Extensions/Algorithms/RGBToHSVFunction.h>
#define ITK_MANUAL_INSTANTIATION
#include <itkImage.h>
) \
r = this->f< p, d >( )
-
// -------------------------------------------------------------------------
std::string cpPlugins::Plugins::RGBImageToHSVChannelsFilter::
GetClassName( ) const
this->_MakeOutput< cpPlugins::Interface::Image >( 1 );
this->_MakeOutput< cpPlugins::Interface::Image >( 2 );
- this->m_DefaultParameters.clear( );
+ this->m_DefaultParameters.Clear( );
}
// -------------------------------------------------------------------------
{
typedef itk::Image< itk::RGBPixel< P >, D > _TImage;
typedef itk::Image< P, D > _TChannel;
+ typedef cpPlugins::Extensions::Algorithms::RGBToHSVFunction< P > _TFunction;
typedef cpPlugins::Extensions::Algorithms::
- RGBImageToHSVChannelsFilter< _TImage, _TChannel > _TFilter;
+ RGBImageToOtherChannelsFilter< _TImage, _TChannel, _TFunction > _TFilter;
// Filter creation
_TFilter* filter =
filter->SetInput( dynamic_cast< _TImage* >( this->_GetInput( 0 ) ) );
filter->Update( );
- this->_SetOutput( 0, filter->GetHueOutput( ) );
- this->_SetOutput( 1, filter->GetSaturationOutput( ) );
- this->_SetOutput( 2, filter->GetValueOutput( ) );
+ this->_SetOutput( 0, filter->GetChannel1( ) );
+ this->_SetOutput( 1, filter->GetChannel2( ) );
+ this->_SetOutput( 2, filter->GetChannel3( ) );
return( "" );
}