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. |