Go to the source code of this file.
Namespaces | |
namespace | itk |
Defines | |
#define | ITK_DEFAULTCONVERTTRAITS_NATIVE_SPECIAL(type) |
#define | ITK_DEFAULTCONVERTTRAITS_OFFSET_TYPE(dimension) |
#define | ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE(type, componenttype, dimension) |
|
Value: template<> \ class DefaultConvertPixelTraits< type< componenttype, dimension> > \ { \ public: \ typedef type< componenttype, dimension > TargetType; \ typedef componenttype ComponentType; \ static unsigned int GetNumberOfComponents() \ { \ return dimension; \ } \ static void SetNthComponent(int i, TargetType & pixel, const ComponentType& v) \ { \ pixel[i] = v; \ } \ static ComponentType GetScalarValue(const TargetType& pixel) \ { \ return pixel[0]; \ } \ }; \ Definition at line 140 of file itkDefaultConvertPixelTraits.h. |
|
Value: template<> \ class DefaultConvertPixelTraits<type> \ { \ public: \ typedef type ComponentType; \ static unsigned int GetNumberOfComponents() \ { \ return 1; \ } \ static void SetNthComponent(int , type& pixel, const ComponentType& v) \ { \ pixel = v; \ } \ static type GetScalarValue(const type& pixel) \ { \ return pixel; \ } \ }; Definition at line 63 of file itkDefaultConvertPixelTraits.h. |
|
Value: template<> \ class DefaultConvertPixelTraits< Offset<dimension> > \ { \ public: \ typedef Offset<dimension> TargetType; \ typedef TargetType::OffsetValueType ComponentType; \ static unsigned int GetNumberOfComponents() \ { \ return dimension; \ } \ static void SetNthComponent(int i, TargetType & pixel, const ComponentType& v) \ { \ pixel[i] = v; \ } \ static ComponentType GetScalarValue(const TargetType& pixel) \ { \ return pixel[0]; \ } \ }; \ Definition at line 104 of file itkDefaultConvertPixelTraits.h. |