13 #ifndef mitkPixelTypeList_h
14 #define mitkPixelTypeList_h
36 template <
typename T0,
74 template <
typename TypeList>
83 template <
typename TypeList,
86 bool Stop = (Index == Step),
95 template <
typename TypeList,
int Index,
int Step,
bool Stop>
103 template <
typename TypeList,
int Index,
int Step,
bool OutOfRange>
108 typedef typename TypeList::head
type;
113 template <
typename TypeList,
int Index = 0,
bool Stop = (Index == PixelTypeLength<TypeList>::value)>
116 template <
typename TypeList,
int Index,
bool Stop>
119 template <
typename F>
134 template <
typename TypeList,
int Index>
137 template <
typename F>
140 throw std::out_of_range(
"Index out of range");
144 template <
typename X,
int VDimension,
typename T1 = EmptyType,
typename T2 = EmptyType,
typename T3 = EmptyType>
150 X *cl,
CallBack callBack,
const mitk::Image *mitkImage, T1 t1 = T1(), T2 t2 = T2(), T3 t3 = T3())
151 : cl(cl), callBack(callBack), mitkImage(mitkImage), pixelType(mitkImage->
GetPixelType()), t1(t1), t2(t2), t3(t3)
155 template <
typename PixelType>
165 typedef itk::Image<PixelType, VDimension> ImageType;
168 imagetoitk->SetInput(mitkImage);
169 imagetoitk->Update();
170 cl->*callBack(imagetoitk->GetOutput(), t1, t2, t3);