/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: $RCSfile: itkNumericTraitsRGBAPixel.h,v $ Language: C++ Date: $Date: 2007-09-01 06:17:25 +1000 (Sat, 01 Sep 2007) $ Version: $Revision: 2 $ Copyright (c) Insight Software Consortium. All rights reserved. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #ifndef __itkNumericTraitsRGBAPixel_h #define __itkNumericTraitsRGBAPixel_h #include "itkNumericTraits.h" #include "itkRGBAPixel.h" namespace itk { /** \class NumericTraits > * \brief Define traits for type RGBAPixel. * \ingroup DataRepresentation */ template <> class NumericTraits > { public: typedef RGBAPixel ValueType; typedef RGBAPixel PrintType; typedef RGBAPixel AbsType; typedef RGBAPixel AccumulateType; typedef RGBAPixel RealType; typedef double ScalarRealType; typedef RGBAPixel FloatType; static const RGBAPixel ITKCommon_EXPORT Zero; static const RGBAPixel ITKCommon_EXPORT One; static ValueType ZeroValue() { return Zero; } }; /** \class NumericTraits > * \brief Define traits for type RGBAPixel. * \ingroup DataRepresentation */ template <> class NumericTraits > { public: typedef RGBAPixel ValueType; typedef RGBAPixel PrintType; typedef RGBAPixel AbsType; typedef RGBAPixel AccumulateType; typedef RGBAPixel RealType; typedef double ScalarRealType; typedef RGBAPixel FloatType; static const RGBAPixel ITKCommon_EXPORT Zero; static const RGBAPixel ITKCommon_EXPORT One; static ValueType ZeroValue() { return Zero; } }; } // end namespace itk #endif // __itkNumericTraitsRGBPixel_h