57template <
typename TComponent =
unsigned short>
72 static constexpr unsigned int Length = 3;
80#ifdef ITK_FUTURE_LEGACY_REMOVE
87#if defined(ITK_LEGACY_REMOVE)
101 template <
typename TRGBPixelValueType>
111 template <
typename TRGBPixelValueType>
115 BaseArray::operator=(r);
162 return this->operator[](c);
170 std::sqrt(
static_cast<double>(this->
operator[](0)) *
static_cast<double>(this->
operator[](0)) +
171 static_cast<double>(this->
operator[](1)) *
static_cast<double>(this->
operator[](1)) +
172 static_cast<double>(this->
operator[](2)) *
static_cast<double>(this->
operator[](2))));
179 this->operator[](c) = v;
186 this->operator[](0) = red;
193 this->operator[](1) = green;
200 this->operator[](2) = blue;
207 this->operator[](0) = red;
208 this->operator[](1) = green;
209 this->operator[](2) = blue;
214 const ComponentType &
217 return this->operator[](0);
221 const ComponentType &
224 return this->operator[](1);
228 const ComponentType &
231 return this->operator[](2);
239template <
typename TComponent>
243template <
typename TComponent>
267#ifndef ITK_MANUAL_INSTANTIATION
268# include "itkRGBPixel.hxx"
Pixel-wise addition of two images.
Simulate a standard C array with copy semantics.
void swap(FixedArray &other)
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)
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])
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
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
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)