ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkScalarToRGBPixelFunctor.h>
Public Types | |
typedef unsigned char | RGBComponentType |
typedef RGBPixel < RGBComponentType > | RGBPixelType |
typedef TScalar | ScalarType |
Public Member Functions | |
RGBPixelType | operator() (const TScalar &) const |
ScalarToRGBPixelFunctor () | |
void | SetBigEndian () |
void | SetLittleEndian () |
~ScalarToRGBPixelFunctor () | |
Private Attributes | |
unsigned int | m_ColorIndex [3] |
bool | m_IsBigEndian |
A Function object which maps a scalar value into an RGB pixel value.
This class is useful for visualizing labeled images which cannot be mapped succefully into grayscale images. Images of unsigned long integers, for example, may have too many graylevels to visualize effectively.
The hashing scheme used is designed to spread close scalar values of very different colors by using the least significant bits (fastest changing) of the scalar type to determine the color. Because labeled images may typically use sequential values, it is desirable that those values result in easily discernable colors.
Definition at line 44 of file itkScalarToRGBPixelFunctor.h.
typedef unsigned char itk::Functor::ScalarToRGBPixelFunctor< TScalar >::RGBComponentType |
Definition at line 50 of file itkScalarToRGBPixelFunctor.h.
typedef RGBPixel< RGBComponentType > itk::Functor::ScalarToRGBPixelFunctor< TScalar >::RGBPixelType |
Definition at line 51 of file itkScalarToRGBPixelFunctor.h.
typedef TScalar itk::Functor::ScalarToRGBPixelFunctor< TScalar >::ScalarType |
Definition at line 52 of file itkScalarToRGBPixelFunctor.h.
itk::Functor::ScalarToRGBPixelFunctor< TScalar >::ScalarToRGBPixelFunctor | ( | ) |
itk::Functor::ScalarToRGBPixelFunctor< TScalar >::~ScalarToRGBPixelFunctor | ( | ) | [inline] |
Definition at line 48 of file itkScalarToRGBPixelFunctor.h.
RGBPixelType itk::Functor::ScalarToRGBPixelFunctor< TScalar >::operator() | ( | const TScalar & | ) | const |
void itk::Functor::ScalarToRGBPixelFunctor< TScalar >::SetBigEndian | ( | ) | [inline] |
Definition at line 61 of file itkScalarToRGBPixelFunctor.h.
void itk::Functor::ScalarToRGBPixelFunctor< TScalar >::SetLittleEndian | ( | ) | [inline] |
Definition at line 56 of file itkScalarToRGBPixelFunctor.h.
unsigned int itk::Functor::ScalarToRGBPixelFunctor< TScalar >::m_ColorIndex[3] [private] |
Definition at line 68 of file itkScalarToRGBPixelFunctor.h.
bool itk::Functor::ScalarToRGBPixelFunctor< TScalar >::m_IsBigEndian [private] |
Definition at line 67 of file itkScalarToRGBPixelFunctor.h.