58template <
typename TComponent =
unsigned short>
70 static constexpr unsigned int Length = 4;
81#ifdef ITK_FUTURE_LEGACY_REMOVE
89 template <
typename TRGBAPixelValueType>
98#if defined(ITK_LEGACY_REMOVE)
105 RGBAPixel(
const ComponentType & r) { this->Fill(r); }
152 return this->operator[](c);
160 std::sqrt(
static_cast<double>(this->
operator[](0)) *
static_cast<double>(this->
operator[](0)) +
161 static_cast<double>(this->
operator[](1)) *
static_cast<double>(this->
operator[](1)) +
162 static_cast<double>(this->
operator[](2)) *
static_cast<double>(this->
operator[](2))));
169 this->operator[](c) = v;
176 this->operator[](0) = red;
183 this->operator[](1) = green;
190 this->operator[](2) = blue;
197 this->operator[](3) = alpha;
204 this->operator[](0) = red;
205 this->operator[](1) = green;
206 this->operator[](2) = blue;
207 this->operator[](3) = alpha;
212 const ComponentType &
215 return this->operator[](0);
219 const ComponentType &
222 return this->operator[](1);
226 const ComponentType &
229 return this->operator[](2);
233 const ComponentType &
236 return this->operator[](3);
244template <
typename TComponent>
248template <
typename TComponent>
271#ifndef ITK_MANUAL_INSTANTIATION
272# include "itkRGBAPixel.hxx"
Simulate a standard C array with copy semantics.
void swap(FixedArray &other)
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)
RGBAPixel(const ComponentType &r)
Self operator+(const Self &r) const
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
const Self & operator/=(const ComponentType &r)
void SetBlue(ComponentType blue)
void Set(ComponentType red, ComponentType green, ComponentType blue, ComponentType alpha)
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])
constexpr unsigned int Dimension
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)
bool operator<(const Index< VDimension > &one, const Index< VDimension > &two)