37 template <
typename T0,
75 template <
typename TypeList>
84 template <
typename TypeList,
87 bool Stop = (Index == Step),
88 bool OutOfRange = PixelTypeLength<TypeList>::value == 0
96 template <
typename TypeList,
int Index,
int Step,
bool Stop>
104 template <
typename TypeList,
int Index,
int Step,
bool OutOfRange>
109 typedef typename TypeList::head
type;
114 template <typename TypeList, int Index = 0, bool Stop = (Index == PixelTypeLength<TypeList>::value)>
117 template <
typename TypeList,
int Index,
bool Stop>
120 template <
typename F>
135 template <
typename TypeList,
int Index>
138 template <
typename F>
141 throw std::out_of_range(
"Index out of range");
145 template <
typename X,
int VDimension,
typename T1 = EmptyType,
typename T2 = EmptyType,
typename T3 = EmptyType>
151 X *cl,
CallBack callBack,
const mitk::Image *mitkImage, T1 t1 = T1(), T2 t2 = T2(), T3 t3 = T3())
152 : cl(cl), callBack(callBack), mitkImage(mitkImage), pixelType(mitkImage->
GetPixelType()), t1(t1), t2(t2), t3(t3)
156 template <
typename PixelType>
166 typedef itk::Image<PixelType, VDimension>
ImageType;
169 imagetoitk->SetInput(mitkImage);
170 imagetoitk->Update();
171 cl->*callBack(imagetoitk->GetOutput(), t1, t2, t3);
PixelTypeList< T1, T2, T3, T4, T5, T6, T7, T8, T9 > tail
bool operator()(int, F &)
static void Update(vtkPolyData *)
DataCollection - Class to facilitate loading/accessing structured data.
bool operator()(int i, F &f)
map::core::discrete::Elements< 3 >::InternalImageType ImageType
GetPixelType< typename TypeList::tail, Index, Step+1 >::type type
Image class for storing images.
AccessItkImageFunctor(X *cl, CallBack callBack, const mitk::Image *mitkImage, T1 t1=T1(), T2 t2=T2(), T3 t3=T3())
unsigned int GetDimension() const
Get dimension of the image.
void(* CallBack)(T1, T2, T3)
Class for defining the data type of pixels.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.