33 template <
typename T0,
49 length = tail::length + 1
71 template <
typename TypeList>
76 value = TypeList::length
80 template <
typename TypeList,
83 bool Stop = (Index == Step),
92 template <
typename TypeList,
int Index,
int Step,
bool Stop>
100 template <
typename TypeList,
int Index,
int Step,
bool OutOfRange>
105 typedef typename TypeList::head
type;
110 template <typename TypeList, int Index = 0, bool Stop = (Index == PixelTypeLength<TypeList>::value)>
113 template <
typename TypeList,
int Index,
bool Stop>
116 template <
typename F>
131 template <
typename TypeList,
int Index>
134 template <
typename F>
137 throw std::out_of_range(
"Index out of range");
141 template <
typename X,
int VDimension,
typename T1 = EmptyType,
typename T2 = EmptyType,
typename T3 = EmptyType>
144 typedef void (*CallBack)(T1, T2, T3);
147 X *cl, CallBack callBack,
const mitk::Image *mitkImage, T1 t1 = T1(), T2
t2 = T2(), T3 t3 = T3())
148 : cl(cl), callBack(callBack), mitkImage(mitkImage), pixelType(mitkImage->
GetPixelType()), t1(t1),
t2(
t2), t3(t3)
152 template <
typename PixelType>
162 typedef itk::Image<PixelType, VDimension>
ImageType;
165 imagetoitk->SetInput(mitkImage);
166 imagetoitk->Update();
167 cl->*callBack(imagetoitk->GetOutput(), t1,
t2, t3);
PixelTypeList< T1, T2, T3, T4, T5, T6, T7, T8, T9 > tail
itk::Image< unsigned char, 3 > ImageType
bool operator()(int, F &)
static void Update(vtkPolyData *)
DataCollection - Class to facilitate loading/accessing structured data.
bool operator()(int i, F &f)
GetPixelType< typename TypeList::tail, Index, Step+1 >::type type
unsigned int GetDimension() const
Get dimension of the image.
Image class for storing images.
AccessItkImageFunctor(X *cl, CallBack callBack, const mitk::Image *mitkImage, T1 t1=T1(), T2 t2=T2(), T3 t3=T3())
Class for defining the data type of pixels.