57template <
typename TComponent =
unsigned short>
72 static constexpr unsigned int Length = 3;
80#ifdef ITK_FUTURE_LEGACY_REMOVE
92#if defined(ITK_LEGACY_REMOVE)
106 template <
typename TRGBPixelValueType>
116 template <
typename TRGBPixelValueType>
176 std::sqrt(
static_cast<double>(this->
operator[](0)) *
static_cast<double>(this->
operator[](0)) +
177 static_cast<double>(this->
operator[](1)) *
static_cast<double>(this->
operator[](1)) +
178 static_cast<double>(this->
operator[](2)) *
static_cast<double>(this->
operator[](2))));
220 const ComponentType &
227 const ComponentType &
234 const ComponentType &
245template <
typename TComponent>
249template <
typename TComponent>
273#ifndef ITK_MANUAL_INSTANTIATION
274# include "itkRGBPixel.hxx"
FixedArray & operator=(const FixedArray< TFixedArrayValueType, VLength > &r)
ITK_GCC_PRAGMA_PUSH ITK_GCC_SUPPRESS_Warray_bounds constexpr reference operator[](unsigned int index)
void Fill(const ValueType &)
Represent Red, Green and Blue components for color images.
ComponentType GetNthComponent(int c) const
static unsigned int GetNumberOfComponents()
void Set(ComponentType red, ComponentType green, ComponentType blue)
Self operator*(const ComponentType &r) const
Self & operator=(const RGBPixel< TRGBPixelValueType > &r)
RGBPixel(const RGBPixel< TRGBPixelValueType > &r)
const ComponentType & GetBlue() const
const Self & operator-=(const Self &r)
RGBPixel(const ComponentType &r)
LuminanceType GetLuminance() const
void SetBlue(ComponentType blue)
FixedArray< T, 3 > Superclass
void SetRed(ComponentType red)
typename NumericTraits< ComponentType >::RealType LuminanceType
RGBPixel(std::nullptr_t)=delete
Self operator-(const Self &r) const
Self operator+(const Self &r) const
RGBPixel(const ComponentType r[3])
bool operator<(const Self &r) const
const Self & operator*=(const ComponentType &r)
const Self & operator/=(const ComponentType &r)
Self & operator=(const ComponentType r[3])
const ComponentType & GetGreen() const
ComponentType GetScalarValue() const
static constexpr unsigned int Length
void SetGreen(ComponentType green)
const Self & operator+=(const Self &r)
void SetNthComponent(int c, const ComponentType &v)
Self operator/(const ComponentType &r) const
bool operator==(const Self &r) const
const ComponentType & GetRed() const
FixedArray< T, 3 > BaseArray
static 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)