Main Page
Groups
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File
List
Namespace Members
Compound Members
File Members
Concepts
Represent Red, Green and Blue component for color images.
More...
#include <itkRGBPixel.h>
Inheritance diagram for itk::RGBPixel< TComponent >:
[legend]Collaboration diagram for itk::RGBPixel< TComponent >:
[legend]List of all members.
Detailed Description
template<typename TComponent = unsigned short>
class itk::RGBPixel< TComponent >
Represent Red, Green and Blue 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:
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.
Member Typedef Documentation
Constructor & Destructor Documentation
|
Default constructor has nothing to do. Definition at line 69 of file itkRGBPixel.h. |
|
Default constructor has nothing to do. Definition at line 70 of file itkRGBPixel.h. |
Member Function Documentation
template<typename TComponent = unsigned short> |
ComponentType itk::RGBPixel< TComponent >::GetNthComponent |
( |
int |
c |
) |
const [inline] |
|
|
Return the value for the Nth component. Definition at line 96 of file itkRGBPixel.h. |
template<typename TComponent = unsigned short> |
int itk::RGBPixel< TComponent >::GetNumberOfComponents |
( |
|
) |
[inline, static] |
|
|
Return the number of components. Definition at line 93 of file itkRGBPixel.h. |
|
Return the value for the Nth component. Definition at line 100 of file itkRGBPixel.h. |
template<typename TComponent = unsigned short> |
itk::RGBPixel< TComponent >::itkStaticConstMacro |
( |
Dimension |
, |
|
|
unsigned |
int, |
|
|
3 |
|
|
) |
|
|
|
Dimension of the vector space. |
|
Aritmetic operations between pixels. Return a new RGBPixel. |
template<typename TComponent = unsigned short> |
Self itk::RGBPixel< TComponent >::operator+ |
( |
const Self & |
vec |
) |
const |
|
|
Aritmetic operations between pixels. Return a new RGBPixel. |
template<typename TComponent = unsigned short> |
const Self& itk::RGBPixel< TComponent >::operator+= |
( |
const Self & |
vec |
) |
|
|
|
Aritmetic operations between pixels. Return a new RGBPixel. |
template<typename TComponent = unsigned short> |
Self itk::RGBPixel< TComponent >::operator- |
( |
const Self & |
vec |
) |
const |
|
|
Aritmetic operations between pixels. Return a new RGBPixel. |
template<typename TComponent = unsigned short> |
const Self& itk::RGBPixel< TComponent >::operator-= |
( |
const Self & |
vec |
) |
|
|
|
Aritmetic operations between pixels. Return a new RGBPixel. |
|
Pass-through assignment operator for the Array base class. |
template<typename TComponent = unsigned short> |
Self& itk::RGBPixel< TComponent >::operator= |
( |
const Self & |
r |
) |
|
|
|
Pass-through assignment operator for the Array base class. |
template<typename TComponent = unsigned short> |
void itk::RGBPixel< TComponent >::SetNthComponent |
( |
int |
c, |
|
|
const ComponentType & |
v |
|
) |
[inline] |
|
The documentation for this class was generated from the following file:
Generated at Sun Apr 1 03:12:45 2007 for ITK by
1.3.8 written by Dimitri van Heesch,
© 1997-2000