18#ifndef itkNumericTraitsRGBAPixel_h
19#define itkNumericTraitsRGBAPixel_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 RGBAPixel to anything other than 4.");
191 static constexpr unsigned int
198 static constexpr unsigned int
210 template <
typename TArray>
214 for (
unsigned int i = 0; i < 4; ++i)
void Fill(const ValueType &)
static void SetLength(RGBAPixel< T > &m, const unsigned int s)
static Self ZeroValue(const Self &)
static constexpr bool IsSigned
RGBAPixel< ElementAbsType > AbsType
static const Self ITKCommon_EXPORT One
RGBAPixel< ElementAccumulateType > AccumulateType
typename NumericTraits< T >::PrintType ElementPrintType
static void AssignToArray(const Self &v, TArray &mv)
static Self NonpositiveMin()
RGBAPixel< ElementPrintType > PrintType
typename NumericTraits< T >::AccumulateType ElementAccumulateType
static bool IsNonpositive(Self val)
static bool IsPositive(Self val)
Self MeasurementVectorType
static bool IsNegative(Self val)
typename NumericTraits< T >::FloatType ElementFloatType
typename NumericTraits< T >::RealType ElementRealType
static constexpr bool IsComplex
static Self min(const Self &)
static Self NonpositiveMin(const Self &)
static constexpr unsigned int GetLength(const RGBAPixel< T > &)
static constexpr unsigned int GetLength()
static Self max(const Self &)
static const Self ITKCommon_EXPORT Zero
RGBAPixel< ElementFloatType > FloatType
RGBAPixel< ElementRealType > RealType
static constexpr bool IsInteger
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
ElementRealType ScalarRealType
typename NumericTraits< T >::AbsType ElementAbsType
static Self OneValue(const Self &)
static bool IsNonnegative(Self val)
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, Blue and Alpha 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)