#include <itkScalarToRGBPixelFunctor.h>
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 successfully 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 discernible colors.
Definition at line 42 of file itkScalarToRGBPixelFunctor.h.
Public Types | |
using | RGBComponentType = unsigned char |
using | RGBPixelType = RGBPixel<RGBComponentType> |
using | ScalarType = TScalar |
Public Member Functions | |
bool | GetUseMSBForHashing () const |
RGBPixelType | operator() (const TScalar &) const |
ScalarToRGBPixelFunctor () | |
void | SetBigEndian () |
void | SetLittleEndian () |
void | SetUseMSBForHashing (bool value) |
void | UseMSBForHashingOff () |
void | UseMSBForHashingOn () |
~ScalarToRGBPixelFunctor ()=default | |
Private Attributes | |
unsigned int | m_ColorIndex [3] |
bool | m_UseMSBForHashing |
using itk::Functor::ScalarToRGBPixelFunctor< TScalar >::RGBComponentType = unsigned char |
Definition at line 48 of file itkScalarToRGBPixelFunctor.h.
using itk::Functor::ScalarToRGBPixelFunctor< TScalar >::RGBPixelType = RGBPixel<RGBComponentType> |
Definition at line 49 of file itkScalarToRGBPixelFunctor.h.
using itk::Functor::ScalarToRGBPixelFunctor< TScalar >::ScalarType = TScalar |
Definition at line 50 of file itkScalarToRGBPixelFunctor.h.
itk::Functor::ScalarToRGBPixelFunctor< TScalar >::ScalarToRGBPixelFunctor | ( | ) |
|
default |
|
inlinenodiscard |
Definition at line 74 of file itkScalarToRGBPixelFunctor.h.
References m_UseMSBForHashing.
RGBPixelType itk::Functor::ScalarToRGBPixelFunctor< TScalar >::operator() | ( | const TScalar & | ) | const |
|
inline |
Definition at line 62 of file itkScalarToRGBPixelFunctor.h.
References m_UseMSBForHashing.
|
inline |
Definition at line 56 of file itkScalarToRGBPixelFunctor.h.
References m_UseMSBForHashing.
|
inline |
Definition at line 68 of file itkScalarToRGBPixelFunctor.h.
References m_UseMSBForHashing.
|
inline |
Definition at line 86 of file itkScalarToRGBPixelFunctor.h.
References m_UseMSBForHashing.
|
inline |
Definition at line 80 of file itkScalarToRGBPixelFunctor.h.
References m_UseMSBForHashing.
|
private |
Definition at line 94 of file itkScalarToRGBPixelFunctor.h.
|
private |
Definition at line 93 of file itkScalarToRGBPixelFunctor.h.
Referenced by GetUseMSBForHashing(), SetBigEndian(), SetLittleEndian(), SetUseMSBForHashing(), UseMSBForHashingOff(), and UseMSBForHashingOn().