ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Static Public Member Functions
itk::MeshConvertPixelTraits< PixelType > Class Template Reference

#include <itkMeshConvertPixelTraits.h>

List of all members.

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)

Detailed Description

template<typename PixelType>
class itk::MeshConvertPixelTraits< PixelType >

Traits class used to by ConvertPixels to convert blocks of pixels.

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 45 of file itkMeshConvertPixelTraits.h.


Member Typedef Documentation

template<typename PixelType >
typedef PixelType::ComponentType itk::MeshConvertPixelTraits< PixelType >::ComponentType

Determine the pixel data type.

Definition at line 49 of file itkMeshConvertPixelTraits.h.


Member Function Documentation

template<typename PixelType >
static ComponentType itk::MeshConvertPixelTraits< PixelType >::GetNthComponent ( int  c,
const PixelType &  pixel 
) [inline, static]

Return the nth component of the pixel.

Definition at line 59 of file itkMeshConvertPixelTraits.h.

template<typename PixelType >
static unsigned int itk::MeshConvertPixelTraits< PixelType >::GetNumberOfComponents ( void  ) [inline, static]

Return the number of components per pixel.

Definition at line 52 of file itkMeshConvertPixelTraits.h.

Referenced by itk::MeshConvertPixelTraits< PixelType >::GetNumberOfComponents().

template<typename PixelType >
static unsigned int itk::MeshConvertPixelTraits< PixelType >::GetNumberOfComponents ( const PixelType &  ) [inline, static]
template<typename PixelType >
static ComponentType itk::MeshConvertPixelTraits< PixelType >::GetScalarValue ( const PixelType &  pixel) [inline, static]

Return a single scalar value from this pixel.

Definition at line 67 of file itkMeshConvertPixelTraits.h.

template<typename PixelType >
static void itk::MeshConvertPixelTraits< PixelType >::SetNthComponent ( int  c,
PixelType &  pixel,
const ComponentType v 
) [inline, static]

Set the nth component of the pixel.

Definition at line 63 of file itkMeshConvertPixelTraits.h.


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