1 /*===================================================================
3 The Medical Imaging Interaction Toolkit (MITK)
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
13 See LICENSE.txt or http://www.mitk.org for details.
15 ===================================================================*/
17 #ifndef MITKBOUNDINGOBJECTCUTANDCAST_TXX
18 #define MITKBOUNDINGOBJECTCUTANDCAST_TXX
20 #include "mitkBoundingObjectCutAndCast.h"
21 #include "mitkImage.h"
22 #include "mitkImageAccessByItk.h"
26 template <typename TPixel>
27 BoundingObjectCutAndCast<TPixel>::BoundingObjectCutAndCast()
31 template <typename TPixel>
32 BoundingObjectCutAndCast<TPixel>::~BoundingObjectCutAndCast()
36 template <typename TPixel>
37 const std::type_info &BoundingObjectCutAndCast<TPixel>::GetOutputPixelType()
39 return typeid(TPixel);
42 template <typename TInputPixelType, unsigned int VImageDimension, class TBoundingObjectCutAndCastType>
43 void CutImageFixedOutputType(itk::Image<TInputPixelType, VImageDimension> *inputItkImage,
44 TBoundingObjectCutAndCastType *cutter,
47 CutImageWithOutputTypeSelect<TInputPixelType, VImageDimension, typename TBoundingObjectCutAndCastType::PixelType>(
48 inputItkImage, cutter, boTimeStep);
51 template <typename TPixel>
52 void BoundingObjectCutAndCast<TPixel>::ComputeData(mitk::Image *input3D, int boTimeStep)
54 AccessFixedDimensionByItk_2(input3D, CutImageFixedOutputType, 3, this, boTimeStep);
57 } // of namespace mitk
58 #endif // of MITKBOUNDINGOBJECTCUTANDCAST_TXX