ITK
4.9.0
Insight Segmentation and Registration Toolkit
|
#include <itkMeshConvertPixelTraits.h>
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 46 of file itkMeshConvertPixelTraits.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 ComponentType | GetScalarValue (const PixelType &pixel) |
static void | SetNthComponent (int c, PixelType &pixel, const ComponentType &v) |
typedef PixelType::ComponentType itk::MeshConvertPixelTraits< PixelType >::ComponentType |
Determine the pixel data type.
Definition at line 50 of file itkMeshConvertPixelTraits.h.
|
inlinestatic |
Return the nth component of the pixel.
Definition at line 60 of file itkMeshConvertPixelTraits.h.
|
inlinestatic |
Return the number of components per pixel.
Definition at line 53 of file itkMeshConvertPixelTraits.h.
|
inlinestatic |
Definition at line 56 of file itkMeshConvertPixelTraits.h.
|
inlinestatic |
Return a single scalar value from this pixel.
Definition at line 68 of file itkMeshConvertPixelTraits.h.
|
inlinestatic |
Set the nth component of the pixel.
Definition at line 64 of file itkMeshConvertPixelTraits.h.