18#ifndef itkNumericTraitsRGBPixel_h
19#define itkNumericTraitsRGBPixel_h
173 static constexpr bool IsSigned = std::is_signed_v<ValueType>;
174 static constexpr bool IsInteger = std::is_integral_v<ValueType>;
185 itkGenericExceptionMacro(
"Cannot set the size of a RGBPixel to anything other "
212 template <
typename TArray>
216 for (
unsigned int i = 0; i < 3; ++i)
void Fill(const ValueType &)
RGBPixel< ElementPrintType > PrintType
Self MeasurementVectorType
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
typename NumericTraits< T >::FloatType ElementFloatType
ElementRealType ScalarRealType
static const Self NonpositiveMin()
RGBPixel< ElementFloatType > FloatType
typename NumericTraits< T >::PrintType ElementPrintType
static const Self OneValue()
static const Self max(const Self &)
static unsigned int GetLength()
typename NumericTraits< T >::RealType ElementRealType
static bool IsPositive(Self val)
static void AssignToArray(const Self &v, TArray &mv)
static const Self ZeroValue()
static bool IsNonnegative(Self val)
static bool IsNegative(Self val)
typename NumericTraits< T >::AbsType ElementAbsType
static constexpr bool IsInteger
RGBPixel< ElementAbsType > AbsType
static bool IsNonpositive(Self val)
static const Self ITKCommon_EXPORT Zero
static void SetLength(RGBPixel< T > &m, const unsigned int s)
static constexpr bool IsSigned
static const Self ZeroValue(const Self &)
typename NumericTraits< T >::AccumulateType ElementAccumulateType
static constexpr bool IsComplex
static const Self OneValue(const Self &)
static const Self min(const Self &)
static const Self ITKCommon_EXPORT One
RGBPixel< ElementAccumulateType > AccumulateType
static unsigned int GetLength(const RGBPixel< T > &)
RGBPixel< ElementRealType > RealType
static const Self NonpositiveMin(const Self &)
Define additional traits for native types such as int or float.
static bool IsNegative(T val)
static constexpr T NonpositiveMin()
static constexpr T max(const T &)
static bool IsPositive(T val)
static constexpr T min(const T &)
static bool IsNonpositive(T val)
static bool IsNonnegative(T val)
static constexpr bool IsComplex
Represent Red, Green and Blue components for color images.
LuminanceType GetLuminance() const
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
constexpr TContainer MakeFilled(typename TContainer::const_reference value)