Main Page
Groups
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File
List
Namespace Members
Compound Members
File Members
Concepts
Represent Red, Green, Blue cand Alpha component for color images.
More...
#include <itkRGBAPixel.h>
Inheritance diagram for itk::RGBAPixel< TComponent >:
[legend]Collaboration diagram for itk::RGBAPixel< TComponent >:
[legend]List of all members.
Detailed Description
template<typename TComponent = unsigned short>
class itk::RGBAPixel< TComponent >
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.
Member Typedef Documentation
Constructor & Destructor Documentation
|
Default constructor has nothing to do. Definition at line 66 of file itkRGBAPixel.h. |
|
Default constructor has nothing to do. Definition at line 67 of file itkRGBAPixel.h. |
Member Function Documentation
|
Return the value for the Nth component. Definition at line 85 of file itkRGBAPixel.h. |
template<typename TComponent = unsigned short> |
int itk::RGBAPixel< TComponent >::GetNumberOfComponents |
( |
|
) |
[inline, static] |
|
|
Return the number of componentsxquery-rep. Definition at line 82 of file itkRGBAPixel.h. |
|
Return the value for the Nth component. Definition at line 89 of file itkRGBAPixel.h. |
|
Pass-through assignment operator for the Array base class. |
|
Pass-through assignment operator for the Array base class. |
template<typename TComponent = unsigned short> |
void itk::RGBAPixel< TComponent >::SetNthComponent |
( |
int |
c, |
|
|
const ComponentType & |
v |
|
) |
[inline] |
|
The documentation for this class was generated from the following file:
Generated at Sat Mar 31 02:59:25 2007 for ITK by
1.3.8 written by Dimitri van Heesch,
© 1997-2000