58template <
typename TComponent =
unsigned short>
70 static constexpr unsigned int Length = 4;
81#ifdef ITK_FUTURE_LEGACY_REMOVE
94 template <
typename TRGBAPixelValueType>
103#if defined(ITK_LEGACY_REMOVE)
110 RGBAPixel(
const ComponentType & r) { this->Fill(r); }
166 std::sqrt(
static_cast<double>(this->
operator[](0)) *
static_cast<double>(this->
operator[](0)) +
167 static_cast<double>(this->
operator[](1)) *
static_cast<double>(this->
operator[](1)) +
168 static_cast<double>(this->
operator[](2)) *
static_cast<double>(this->
operator[](2))));
218 const ComponentType &
225 const ComponentType &
232 const ComponentType &
239 const ComponentType &
250template <
typename TComponent>
254template <
typename TComponent>
277#ifndef ITK_MANUAL_INSTANTIATION
278# include "itkRGBAPixel.hxx"
ITK_GCC_PRAGMA_PUSH ITK_GCC_SUPPRESS_Warray_bounds constexpr reference operator[](unsigned int index)
void Fill(const ValueType &)
Represent Red, Green, Blue and Alpha components for color images.
RGBAPixel(std::nullptr_t)=delete
ComponentType GetNthComponent(int c) const
RGBAPixel & operator=(const ComponentType r[4])
RGBAPixel(const RGBAPixel< TRGBAPixelValueType > &r)
void SetAlpha(ComponentType alpha)
LuminanceType GetLuminance() const
const Self & operator+=(const Self &r)
static constexpr unsigned int Length
RGBAPixel(const ComponentType &r)
Self operator+(const Self &r) const
FixedArray< T, 4 > Superclass
Self operator-(const Self &r) const
void SetNthComponent(int c, const ComponentType &v)
const ComponentType & GetAlpha() const
const ComponentType & GetRed() const
bool operator==(const Self &r) const
const ComponentType & GetGreen() const
void SetGreen(ComponentType green)
static unsigned int GetNumberOfComponents()
ComponentType GetScalarValue() const
typename NumericTraits< ComponentType >::RealType LuminanceType
Self operator/(const ComponentType &r) const
static constexpr unsigned int Dimension
const Self & operator/=(const ComponentType &r)
bool operator<(const Self &r) const
void SetBlue(ComponentType blue)
void Set(ComponentType red, ComponentType green, ComponentType blue, ComponentType alpha)
FixedArray< T, 4 > BaseArray
const Self & operator-=(const Self &r)
Self operator*(const ComponentType &r) const
const Self & operator*=(const ComponentType &r)
const ComponentType & GetBlue() const
void SetRed(ComponentType red)
RGBAPixel(const ComponentType r[4])
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
void swap(Array< T > &a, Array< T > &b) noexcept
std::istream & operator>>(std::istream &is, Point< T, VPointDimension > &vct)
ITKCommon_EXPORT std::ostream & operator<<(std::ostream &out, typename AnatomicalOrientation::CoordinateEnum value)