#include <itkRGBPixel.h>
Inheritance diagram for itk::RGBPixel:
Public Types | |
typedef RGBPixel | Self |
typedef FixedArray< TComponent, 3 > | SuperClass |
typedef FixedArray< TComponent, 3 > | BaseArray |
typedef TComponent | ComponentType |
typedef SuperClass::ValueType | ValueType |
Public Methods | |
itkStaticConstMacro (Dimension, unsigned int, 3) | |
ComponentType | GetNthComponent (int c) const |
ComponentType | GetScalarValue () const |
void | SetNthComponent (int c, const ComponentType &v) |
void | SetRed (ComponentType red) |
void | SetGreen (ComponentType green) |
void | SetBlue (ComponentType blue) |
void | Set (ComponentType red, ComponentType green, ComponentType blue) |
const ComponentType & | GetRed (void) const |
const ComponentType & | GetGreen (void) const |
const ComponentType & | GetBlue (void) const |
RGBPixel () | |
RGBPixel (const ComponentType &r) | |
RGBPixel (const Self &r) | |
RGBPixel (const ComponentType r[3]) | |
Self & | operator= (const Self &r) |
Self & | operator= (const ComponentType r[3]) |
Self | operator+ (const Self &vec) const |
Self | operator- (const Self &vec) const |
const Self & | operator+= (const Self &vec) |
const Self & | operator-= (const Self &vec) |
Self | operator * (const ComponentType &f) const |
Static Public Methods | |
int | GetNumberOfComponents () |
This class is templated over the representation used for each component.
The following syntax for assigning an index is allowed/suggested:
RGBPixel<float> pixel; pixel = 1.0f, 0.0f, .5f; RGBPixel<char> pixelArray[2]; pixelArray[0] = 255, 255, 255; pixelArray[1] = 255, 255, 244;
Since RGBPixel is a subclass of Array, you can access its components as: pixel[0], pixel[1], pixel[2]
Definition at line 51 of file itkRGBPixel.h.
|
Convenience typedefs. Definition at line 62 of file itkRGBPixel.h. |
|
Define the component type. Definition at line 65 of file itkRGBPixel.h. Referenced by itk::RGBPixel< TPixel >::GetNthComponent(), itk::RGBPixel< TPixel >::GetRed(), itk::RGBPixel< TPixel >::RGBPixel(), itk::RGBPixel< TPixel >::Set(), itk::RGBPixel< TPixel >::SetGreen(), itk::RGBPixel< TPixel >::SetNthComponent(), and itk::RGBPixel< TPixel >::SetRed(). |
|
Standard class typedefs. Definition at line 55 of file itkRGBPixel.h. |
|
Definition at line 56 of file itkRGBPixel.h. |
|
Reimplemented from itk::FixedArray< TComponent, 3 >. Definition at line 66 of file itkRGBPixel.h. |
|
Default constructor has nothing to do. Definition at line 69 of file itkRGBPixel.h. |
|
Default constructor has nothing to do. |
|
Pass-through constructor for the Array base class. Definition at line 74 of file itkRGBPixel.h. |
|
Pass-through constructor for the Array base class. Definition at line 75 of file itkRGBPixel.h. |
|
Get the Blue component. Definition at line 132 of file itkRGBPixel.h. |
|
Get the Green component. Definition at line 129 of file itkRGBPixel.h. |
|
Return the value for the Nth component. Definition at line 96 of file itkRGBPixel.h. |
|
Return the number of components. Definition at line 93 of file itkRGBPixel.h. |
|
Get the Red component. Definition at line 126 of file itkRGBPixel.h. |
|
Return the value for the Nth component. Definition at line 100 of file itkRGBPixel.h. |
|
Dimension of the vector space. |
|
Aritmetic operations between pixels. Return a new RGBPixel. |
|
Aritmetic operations between pixels. Return a new RGBPixel. |
|
Aritmetic operations between pixels. Return a new RGBPixel. |
|
Aritmetic operations between pixels. Return a new RGBPixel. |
|
Aritmetic operations between pixels. Return a new RGBPixel. |
|
Pass-through assignment operator for the Array base class. |
|
Pass-through assignment operator for the Array base class. |
|
Set the three components. Definition at line 122 of file itkRGBPixel.h. Referenced by itk::Function::ComposeRGB< TInput >::operator()(). |
|
Set the Blue component. Definition at line 119 of file itkRGBPixel.h. |
|
Set the Green component. Definition at line 116 of file itkRGBPixel.h. |
|
Set the Nth component to v. Definition at line 109 of file itkRGBPixel.h. |
|
Set the Red component. Definition at line 113 of file itkRGBPixel.h. |