Go to the source code of this file.
#define ITK_DEFAULTCONVERTTRAITS_COMPLEX_TYPE | ( | componenttype | ) |
Value:
template<> \ class DefaultConvertPixelTraits< ::std::complex< componenttype > > \ { \ public: \ typedef ::std::complex< componenttype> TargetType; \ typedef componenttype ComponentType; \ static unsigned int GetNumberOfComponents() \ { \ return 2; \ } \ static void SetNthComponent(int i, TargetType & pixel, const ComponentType& v) \ { \ if( i == 0 ) \ { \ pixel = TargetType( v, pixel.imag() ); \ } \ else \ { \ pixel = TargetType( pixel.real(), v ); \ } \ } \ static ComponentType GetScalarValue(const TargetType& pixel) \ { \ return std::norm(pixel); \ } \ }; \
Definition at line 263 of file itkDefaultConvertPixelTraits.h.
#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 136 of file itkDefaultConvertPixelTraits.h.
#define ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_MACRO | ( | ArrayType, | |||
Type | ) |
Value:
ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE(ArrayType,Type,1) \ ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE(ArrayType,Type,2) \ ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE(ArrayType,Type,3) \ ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE(ArrayType,Type,4) \ ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE(ArrayType,Type,5) \ ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE(ArrayType,Type,6)
Definition at line 163 of file itkDefaultConvertPixelTraits.h.
#define ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_TYPES_MACRO | ( | ArrayType | ) |
Value:
ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_MACRO(ArrayType, char); \ ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_MACRO(ArrayType, signed char); \ ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_MACRO(ArrayType, unsigned char); \ ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_MACRO(ArrayType, short); \ ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_MACRO(ArrayType, unsigned short); \ ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_MACRO(ArrayType, int); \ ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_MACRO(ArrayType, unsigned int); \ ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_MACRO(ArrayType, long); \ ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_MACRO(ArrayType, unsigned long); \ ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_MACRO(ArrayType, float); \ ITK_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_MACRO(ArrayType, double);
Definition at line 171 of file itkDefaultConvertPixelTraits.h.
#define ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE | ( | type, | |||
componenttype, | |||||
rows, | |||||
cols | ) |
Value:
template<> \ class DefaultConvertPixelTraits< type< componenttype, rows, cols > > \ { \ public: \ typedef type< componenttype, rows, cols > TargetType; \ typedef componenttype ComponentType; \ static unsigned int GetNumberOfComponents() \ { \ return rows * cols; \ } \ static void SetNthComponent(int i, TargetType & pixel, const ComponentType& v) \ { \ const unsigned int row = i / cols; \ const unsigned int col = i % cols; \ pixel[row][col] = v; \ } \ static ComponentType GetScalarValue(const TargetType& pixel) \ { \ return pixel[0][0]; \ } \ }; \
Definition at line 199 of file itkDefaultConvertPixelTraits.h.
#define ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_MACRO | ( | ArrayType, | |||
Type | ) |
Value:
ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE(ArrayType,Type,1,1) \ ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE(ArrayType,Type,2,2) \ ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE(ArrayType,Type,3,3) \ ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE(ArrayType,Type,4,4) \ ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE(ArrayType,Type,5,5) \ ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE(ArrayType,Type,6,6)
Definition at line 227 of file itkDefaultConvertPixelTraits.h.
#define ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_TYPES_MACRO | ( | ArrayType | ) |
Value:
ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_MACRO(ArrayType, char); \ ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_MACRO(ArrayType, signed char); \ ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_MACRO(ArrayType, unsigned char); \ ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_MACRO(ArrayType, short); \ ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_MACRO(ArrayType, unsigned short); \ ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_MACRO(ArrayType, int); \ ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_MACRO(ArrayType, unsigned int); \ ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_MACRO(ArrayType, long); \ ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_MACRO(ArrayType, unsigned long); \ ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_MACRO(ArrayType, float); \ ITK_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_MACRO(ArrayType, double);
Definition at line 235 of file itkDefaultConvertPixelTraits.h.
#define ITK_DEFAULTCONVERTTRAITS_NATIVE_SPECIAL | ( | type | ) |
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 64 of file itkDefaultConvertPixelTraits.h.
#define ITK_DEFAULTCONVERTTRAITS_OFFSET_TYPE | ( | dimension | ) |
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 103 of file itkDefaultConvertPixelTraits.h.