Orfeo Toolbox  3.16
Public Types | Public Member Functions | Private Attributes | List of all members
itk::Functor::ScalarToRGBPixelFunctor< TScalar > Class Template Reference

Function object which maps a scalar value into an RGB pixel value. More...

#include <itkScalarToRGBPixelFunctor.h>

Public Types

typedef unsigned char RGBComponentType
 
typedef RGBPixel
< RGBComponentType
RGBPixelType
 
typedef TScalar ScalarType
 

Public Member Functions

 ScalarToRGBPixelFunctor ()
 
 ~ScalarToRGBPixelFunctor ()
 
RGBPixelType operator() (const TScalar &) const
 
void SetBigEndian ()
 
void SetLittleEndian ()
 

Private Attributes

::vcl_size_t m_Index [3]
 
bool m_IsBigEndian
 

Detailed Description

template<class TScalar>
class itk::Functor::ScalarToRGBPixelFunctor< TScalar >

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 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 42 of file itkScalarToRGBPixelFunctor.h.

Member Typedef Documentation

template<class TScalar>
typedef unsigned char itk::Functor::ScalarToRGBPixelFunctor< TScalar >::RGBComponentType

Definition at line 46 of file itkScalarToRGBPixelFunctor.h.

template<class TScalar>
typedef RGBPixel<RGBComponentType> itk::Functor::ScalarToRGBPixelFunctor< TScalar >::RGBPixelType

Definition at line 49 of file itkScalarToRGBPixelFunctor.h.

template<class TScalar>
typedef TScalar itk::Functor::ScalarToRGBPixelFunctor< TScalar >::ScalarType

Definition at line 50 of file itkScalarToRGBPixelFunctor.h.

Constructor & Destructor Documentation

template<class TScalar >
itk::Functor::ScalarToRGBPixelFunctor< TScalar >::ScalarToRGBPixelFunctor ( )

Definition at line 28 of file itkScalarToRGBPixelFunctor.txx.

template<class TScalar>
itk::Functor::ScalarToRGBPixelFunctor< TScalar >::~ScalarToRGBPixelFunctor ( )
inline

Definition at line 46 of file itkScalarToRGBPixelFunctor.h.

Member Function Documentation

template<class TScalar>
ScalarToRGBPixelFunctor< TScalar >::RGBPixelType itk::Functor::ScalarToRGBPixelFunctor< TScalar >::operator() ( const TScalar &  v) const

Definition at line 46 of file itkScalarToRGBPixelFunctor.txx.

template<class TScalar>
void itk::Functor::ScalarToRGBPixelFunctor< TScalar >::SetBigEndian ( )
inline

Definition at line 58 of file itkScalarToRGBPixelFunctor.h.

template<class TScalar>
void itk::Functor::ScalarToRGBPixelFunctor< TScalar >::SetLittleEndian ( )
inline

Definition at line 54 of file itkScalarToRGBPixelFunctor.h.

Member Data Documentation

template<class TScalar>
::vcl_size_t itk::Functor::ScalarToRGBPixelFunctor< TScalar >::m_Index[3]
private

Definition at line 65 of file itkScalarToRGBPixelFunctor.h.

template<class TScalar>
bool itk::Functor::ScalarToRGBPixelFunctor< TScalar >::m_IsBigEndian
private

Definition at line 64 of file itkScalarToRGBPixelFunctor.h.


The documentation for this class was generated from the following files:

Generated at Sun Jun 16 2013 03:05:13 for Orfeo Toolbox with doxygen 1.8.3.1