1 // -------------------------------------------------------------------------
2 // @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
3 // -------------------------------------------------------------------------
5 #ifndef __CPPLUGINS__EXTENSIONS__ALGORITHMS__RGBTORGBFUNCTION__H__
6 #define __CPPLUGINS__EXTENSIONS__ALGORITHMS__RGBTORGBFUNCTION__H__
8 #include <itkRGBPixel.h>
10 #include <itkVector.h>
21 struct RGBToRGBFunction
23 typedef RGBToRGBFunction Self;
24 typedef itk::Vector< O, 3 > TOutPixel;
26 template< class Tr, class Tg, class Tb >
27 TOutPixel operator()( const Tr& r, const Tg& g, const Tb& b ) const
37 TOutPixel operator()( const itk::RGBPixel< C >& rgb ) const
41 rgb.GetRed( ), rgb.GetGreen( ), rgb.GetBlue( )
53 #endif // __CPPLUGINS__EXTENSIONS__ALGORITHMS__RGBTORGBFUNCTION__H__