1 /*============================================================================
3 The Medical Imaging Interaction Toolkit (MITK)
5 Copyright (c) German Cancer Research Center (DKFZ)
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
11 ============================================================================*/
13 #ifndef MITKBOUNDINGOBJECTCUTANDCAST_TXX
14 #define MITKBOUNDINGOBJECTCUTANDCAST_TXX
16 #include "mitkBoundingObjectCutAndCast.h"
17 #include "mitkImage.h"
18 #include "mitkImageAccessByItk.h"
22 template <typename TPixel>
23 BoundingObjectCutAndCast<TPixel>::BoundingObjectCutAndCast()
27 template <typename TPixel>
28 BoundingObjectCutAndCast<TPixel>::~BoundingObjectCutAndCast()
32 template <typename TPixel>
33 const std::type_info &BoundingObjectCutAndCast<TPixel>::GetOutputPixelType()
35 return typeid(TPixel);
38 template <typename TInputPixelType, unsigned int VImageDimension, class TBoundingObjectCutAndCastType>
39 void CutImageFixedOutputType(itk::Image<TInputPixelType, VImageDimension> *inputItkImage,
40 TBoundingObjectCutAndCastType *cutter,
43 CutImageWithOutputTypeSelect<TInputPixelType, VImageDimension, typename TBoundingObjectCutAndCastType::PixelType>(
44 inputItkImage, cutter, boTimeStep);
47 template <typename TPixel>
48 void BoundingObjectCutAndCast<TPixel>::ComputeData(mitk::Image *input3D, int boTimeStep)
50 AccessFixedDimensionByItk_2(input3D, CutImageFixedOutputType, 3, this, boTimeStep);
53 } // of namespace mitk
54 #endif // of MITKBOUNDINGOBJECTCUTANDCAST_TXX