#include <itkDefaultConvertPixelTraits.h>
Public Types | |
typedef PixelType::ComponentType | ComponentType |
Static Public Methods | |
unsigned int | GetNumberOfComponents () |
ComponentType | GetNthComponent (int c, const PixelType &pixel) |
void | SetNthComponent (int c, PixelType &pixel, const ComponentType &v) |
ComponentType | GetScalarValue (const PixelType &pixel) |
TOutputPixelType is the destination type. The input type is infered 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 39 of file itkDefaultConvertPixelTraits.h.
|
Determine the pixel data type. Definition at line 43 of file itkDefaultConvertPixelTraits.h. Referenced by itk::DefaultConvertPixelTraits< PixelType >::GetNthComponent(), itk::DefaultConvertPixelTraits< PixelType >::GetScalarValue(), and itk::DefaultConvertPixelTraits< PixelType >::SetNthComponent(). |
|
Return the nth component of the pixel. Definition at line 50 of file itkDefaultConvertPixelTraits.h. References itk::DefaultConvertPixelTraits< PixelType >::ComponentType. |
|
Return the number of components per pixel. Definition at line 46 of file itkDefaultConvertPixelTraits.h. |
|
Return a single scalar value from this pixel. Definition at line 58 of file itkDefaultConvertPixelTraits.h. References itk::DefaultConvertPixelTraits< PixelType >::ComponentType. |
|
Set the nth component of the pixel. Definition at line 54 of file itkDefaultConvertPixelTraits.h. References itk::DefaultConvertPixelTraits< PixelType >::ComponentType. |