ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkDefaultConvertPixelTraits.h>
Public Types | |
typedef PixelType::ComponentType | ComponentType |
Static Public Member Functions | |
static ComponentType | GetNthComponent (int c, const PixelType &pixel) |
static unsigned int | GetNumberOfComponents () |
static unsigned int | GetNumberOfComponents (const PixelType) |
static void | SetNthComponent (int c, PixelType &pixel, const ComponentType &v) |
static ComponentType | GetScalarValue (const PixelType &pixel) |
Traits class used to by ConvertPixels to convert blocks of pixels.
TOutputPixelType is the destination type. The input type is inferred by the templated static function Convert.
This implementaion, does a simple assignment operator, so if you are going from from a higher bit representation to a lower bit one (int to char), you may want to specialize and add some sort of transfer function.
Definition at line 40 of file itkDefaultConvertPixelTraits.h.
typedef PixelType::ComponentType itk::DefaultConvertPixelTraits< PixelType >::ComponentType |
Determine the pixel data type.
Definition at line 44 of file itkDefaultConvertPixelTraits.h.
|
inlinestatic |
Return the nth component of the pixel.
Definition at line 54 of file itkDefaultConvertPixelTraits.h.
|
inlinestatic |
Return the number of components per pixel.
Definition at line 47 of file itkDefaultConvertPixelTraits.h.
Referenced by itk::DefaultConvertPixelTraits< PixelType >::GetNumberOfComponents().
|
inlinestatic |
Definition at line 50 of file itkDefaultConvertPixelTraits.h.
References itk::DefaultConvertPixelTraits< PixelType >::GetNumberOfComponents().
|
inlinestatic |
Return a single scalar value from this pixel.
Definition at line 62 of file itkDefaultConvertPixelTraits.h.
|
inlinestatic |
Set the nth component of the pixel.
Definition at line 58 of file itkDefaultConvertPixelTraits.h.