![]() |
Orfeo Toolbox
3.16
|
Represent Red, Green, Blue cand Alpha component for color images. More...
#include <itkRGBAPixel.h>
Inheritance diagram for itk::RGBAPixel< TComponent >:
Collaboration diagram for itk::RGBAPixel< TComponent >:Public Types | |
| typedef FixedArray< TComponent, 4 > | BaseArray |
| typedef ValueType | CArray [VLength] |
| typedef TComponent | ComponentType |
| typedef const ValueType * | const_pointer |
| typedef const ValueType & | const_reference |
| typedef const ValueType * | ConstIterator |
| typedef ValueType * | Iterator |
| typedef ValueType * | pointer |
| typedef ValueType & | reference |
| typedef RGBAPixel | Self |
| typedef unsigned int | SizeType |
| typedef FixedArray< TComponent, 4 > | Superclass |
| typedef TComponent | ValueType |
Public Member Functions | |
| RGBAPixel () | |
| RGBAPixel (const ComponentType &r) | |
| template<class TRGBAPixelValueType > | |
| RGBAPixel (const RGBAPixel< TRGBAPixelValueType > &r) | |
| RGBAPixel (const ComponentType r[4]) | |
| Iterator | Begin () |
| ConstIterator | Begin () const |
| Iterator | End () |
| ConstIterator | End () const |
| void | Fill (const ValueType &) |
| const ComponentType & | GetAlpha (void) const |
| const ComponentType & | GetBlue (void) const |
| ValueType * | GetDataPointer () |
| const ValueType * | GetDataPointer () const |
| const_reference | GetElement (unsigned short index) const |
| const ComponentType & | GetGreen (void) const |
| ComponentType | GetLuminance (void) const |
| ComponentType | GetNthComponent (int c) const |
| const ComponentType & | GetRed (void) const |
| ComponentType | GetScalarValue () const |
| bool | operator!= (const FixedArray &r) const |
| RGBAPixel & | operator= (const Self &r) |
| RGBAPixel & | operator= (const ComponentType r[4]) |
| bool | operator== (const FixedArray &r) const |
| reference | operator[] (short index) |
| const_reference | operator[] (short index) const |
| reference | operator[] (unsigned short index) |
| const_reference | operator[] (unsigned short index) const |
| reference | operator[] (int index) |
| const_reference | operator[] (int index) const |
| reference | operator[] (unsigned int index) |
| const_reference | operator[] (unsigned int index) const |
| reference | operator[] (long index) |
| const_reference | operator[] (long index) const |
| reference | operator[] (unsigned long index) |
| const_reference | operator[] (unsigned long index) const |
| ReverseIterator | rBegin () |
| ConstReverseIterator | rBegin () const |
| ReverseIterator | rEnd () |
| ConstReverseIterator | rEnd () const |
| void | Set (ComponentType red, ComponentType green, ComponentType blue, ComponentType alpha) |
| void | SetAlpha (ComponentType alpha) |
| void | SetBlue (ComponentType blue) |
| void | SetElement (unsigned short index, const_reference value) |
| void | SetGreen (ComponentType green) |
| void | SetNthComponent (int c, const ComponentType &v) |
| void | SetRed (ComponentType red) |
| SizeType | Size () const |
Static Public Member Functions | |
| static FixedArray | Filled (const ValueType &) |
| static unsigned int | GetNumberOfComponents () |
Static Public Attributes | |
| static const unsigned int | Dimension = 4 |
| static const unsigned int | Length = 4 |
Represent Red, Green, Blue cand Alpha component for color images.
This class is templated over the representation used for each component.
The following syntax for assigning an index is allowed/suggested:
RGBAPixel<float> pixel; pixel = 1.0f, 0.0f, .5f, .8; RGBAPixel<char> pixelArray[2]; pixelArray[0] = 255, 255, 255, 230; pixelArray[1] = 255, 255, 244, 255;
Since RGBAPixel is a subclass of Array, you can access its components as: pixel[0], pixel[1], pixel[2], pixel[3]
Definition at line 52 of file itkRGBAPixel.h.
| typedef FixedArray<TComponent, 4> itk::RGBAPixel< TComponent >::BaseArray |
Convenience typedefs.
Definition at line 74 of file itkRGBAPixel.h.
|
inherited |
A type representing the C-array version of this FixedArray.
Definition at line 77 of file itkFixedArray.h.
| typedef TComponent itk::RGBAPixel< TComponent >::ComponentType |
Define the component type.
Definition at line 77 of file itkRGBAPixel.h.
|
inherited |
A const pointer to the ValueType.
Definition at line 129 of file itkFixedArray.h.
|
inherited |
A const reference to the ValueType.
Definition at line 135 of file itkFixedArray.h.
|
inherited |
A const iterator through the array.
Definition at line 83 of file itkFixedArray.h.
|
inherited |
An iterator through the array.
Definition at line 80 of file itkFixedArray.h.
|
inherited |
A pointer to the ValueType.
Definition at line 126 of file itkFixedArray.h.
|
inherited |
A reference to the ValueType.
Definition at line 132 of file itkFixedArray.h.
| typedef RGBAPixel itk::RGBAPixel< TComponent >::Self |
Standard class typedefs.
Definition at line 56 of file itkRGBAPixel.h.
|
inherited |
Definition at line 137 of file itkFixedArray.h.
| typedef FixedArray<TComponent, 4> itk::RGBAPixel< TComponent >::Superclass |
Definition at line 57 of file itkRGBAPixel.h.
|
inherited |
The element type stored at each location in the FixedArray.
Definition at line 74 of file itkFixedArray.h.
|
inline |
Default constructor has nothing to do.
Definition at line 80 of file itkRGBAPixel.h.
|
inline |
Definition at line 81 of file itkRGBAPixel.h.
|
inline |
Pass-through constructor for the Array base class.
Definition at line 86 of file itkRGBAPixel.h.
|
inline |
Definition at line 87 of file itkRGBAPixel.h.
|
inherited |
Get various iterators to the array.
Get an Iterator for the beginning of the FixedArray.
|
inherited |
Get a ConstIterator for the beginning of the FixedArray.
|
inherited |
Get an Iterator for the end of the FixedArray.
|
inherited |
Get a ConstIterator for the end of the FixedArray.
|
inherited |
Fill all elements of the array with the given value.
Referenced by itk::RGBAPixel< float >::RGBAPixel().
|
staticinherited |
Return an FixedArray with all elements assigned to the given value.
|
inline |
Get the Alpha component.
Definition at line 139 of file itkRGBAPixel.h.
|
inline |
Get the Blue component.
Definition at line 136 of file itkRGBAPixel.h.
|
inlineinherited |
Return a pointer to the data.
Definition at line 216 of file itkFixedArray.h.
|
inlineinherited |
Definition at line 217 of file itkFixedArray.h.
|
inlineinherited |
Definition at line 213 of file itkFixedArray.h.
|
inline |
Get the Green component.
Definition at line 133 of file itkRGBAPixel.h.
| RGBAPixel< T >::ComponentType itk::RGBAPixel< T >::GetLuminance | ( | void | ) | const |
Get Luminance out of RGB
Definition at line 57 of file itkRGBAPixel.txx.
|
inline |
Return the value for the Nth component.
Definition at line 97 of file itkRGBAPixel.h.
|
inlinestatic |
Return the number of componentsxquery-rep.
Definition at line 94 of file itkRGBAPixel.h.
|
inline |
Get the Red component.
Definition at line 130 of file itkRGBAPixel.h.
|
inline |
Return the value for the Nth component.
Definition at line 101 of file itkRGBAPixel.h.
|
inlineinherited |
Definition at line 191 of file itkFixedArray.h.
| RGBAPixel< T > & itk::RGBAPixel< T >::operator= | ( | const Self & | r | ) |
Pass-through assignment operator for the Array base class.
Assignment Operator
Definition at line 31 of file itkRGBAPixel.txx.
| RGBAPixel< T > & itk::RGBAPixel< T >::operator= | ( | const ComponentType | r[4] | ) |
Definition at line 44 of file itkRGBAPixel.txx.
|
inherited |
Operators == and != are used to compare whether two arrays are equal. Note that arrays are equal when the number of components (size) is the same, and each component value is equal.
Operator != compares different types of arrays.
|
inlineinherited |
Allow the FixedArray to be indexed normally. No bounds checking is done. The separate versions are a work-around for an integer conversion bug in Visual C++.
Definition at line 197 of file itkFixedArray.h.
Referenced by itk::RGBAPixel< float >::GetAlpha(), itk::RGBAPixel< float >::GetBlue(), itk::RGBAPixel< float >::GetGreen(), itk::RGBAPixel< float >::GetNthComponent(), itk::RGBAPixel< float >::GetRed(), itk::RGBAPixel< float >::Set(), itk::RGBAPixel< float >::SetAlpha(), itk::RGBAPixel< float >::SetBlue(), itk::RGBAPixel< float >::SetGreen(), itk::RGBAPixel< float >::SetNthComponent(), and itk::RGBAPixel< float >::SetRed().
|
inlineinherited |
Definition at line 198 of file itkFixedArray.h.
|
inlineinherited |
Definition at line 199 of file itkFixedArray.h.
|
inlineinherited |
Definition at line 200 of file itkFixedArray.h.
|
inlineinherited |
Definition at line 201 of file itkFixedArray.h.
|
inlineinherited |
Definition at line 202 of file itkFixedArray.h.
|
inlineinherited |
Definition at line 203 of file itkFixedArray.h.
|
inlineinherited |
Definition at line 204 of file itkFixedArray.h.
|
inlineinherited |
Definition at line 205 of file itkFixedArray.h.
|
inlineinherited |
Definition at line 206 of file itkFixedArray.h.
|
inlineinherited |
Definition at line 207 of file itkFixedArray.h.
|
inlineinherited |
Definition at line 208 of file itkFixedArray.h.
|
inherited |
Get a begin ReverseIterator.
|
inherited |
Get a begin ConstReverseIterator.
|
inherited |
Get an end ReverseIterator.
|
inherited |
Get an end ConstReverseIterator.
|
inline |
Set the four components.
Definition at line 126 of file itkRGBAPixel.h.
Referenced by itk::Functor::ComposeRGBA< TInputImage::PixelType >::operator()().
|
inline |
Set the Alpha component.
Definition at line 123 of file itkRGBAPixel.h.
Referenced by itk::operator>>().
|
inline |
Set the Blue component.
Definition at line 120 of file itkRGBAPixel.h.
Referenced by otb::Functor::AlphaBlendingFunctor< itk::RGBAPixel< TInputInternalPixel1 >, itk::RGBAPixel< TInputInternalPixel2 >, itk::RGBAPixel< TOutputInternalPixel > >::operator()(), and itk::operator>>().
|
inlineinherited |
Set/Get element methods are more convenient in wrapping languages
Definition at line 211 of file itkFixedArray.h.
|
inline |
Set the Green component.
Definition at line 117 of file itkRGBAPixel.h.
Referenced by otb::Functor::AlphaBlendingFunctor< itk::RGBAPixel< TInputInternalPixel1 >, itk::RGBAPixel< TInputInternalPixel2 >, itk::RGBAPixel< TOutputInternalPixel > >::operator()(), and itk::operator>>().
|
inline |
Set the Nth component to v.
Definition at line 110 of file itkRGBAPixel.h.
|
inline |
Set the Red component.
Definition at line 114 of file itkRGBAPixel.h.
Referenced by otb::Functor::AlphaBlendingFunctor< itk::RGBAPixel< TInputInternalPixel1 >, itk::RGBAPixel< TInputInternalPixel2 >, itk::RGBAPixel< TOutputInternalPixel > >::operator()(), and itk::operator>>().
|
inherited |
Get the size of the FixedArray.
|
static |
Dimension of the vector space.
Reimplemented from itk::FixedArray< TComponent, 4 >.
Definition at line 63 of file itkRGBAPixel.h.
|
static |
Length of the pixel.
Reimplemented from itk::FixedArray< TComponent, 4 >.
Definition at line 70 of file itkRGBAPixel.h.