Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MITKBOUNDINGOBJECTCUTANDCAST_TXX
00020 #define MITKBOUNDINGOBJECTCUTANDCAST_TXX
00021
00022 #include "mitkBoundingObjectCutAndCast.h"
00023 #include "mitkImageAccessByItk.h"
00024 #include "mitkImage.h"
00025
00026 namespace mitk
00027 {
00028
00029 template <typename TPixel>
00030 BoundingObjectCutAndCast<TPixel>::BoundingObjectCutAndCast()
00031 {
00032
00033 }
00034
00035 template <typename TPixel>
00036 BoundingObjectCutAndCast<TPixel>::~BoundingObjectCutAndCast()
00037 {
00038 }
00039
00040 template <typename TPixel>
00041 const std::type_info& BoundingObjectCutAndCast<TPixel>::GetOutputPixelType()
00042 {
00043 return typeid(TPixel);
00044 }
00045
00046 template < typename TInputPixelType, unsigned int VImageDimension, class TBoundingObjectCutAndCastType >
00047 void CutImageFixedOutputType( itk::Image< TInputPixelType, VImageDimension>* inputItkImage, TBoundingObjectCutAndCastType* cutter, int boTimeStep)
00048 {
00049 CutImageWithOutputTypeSelect<TInputPixelType, VImageDimension, typename TBoundingObjectCutAndCastType::PixelType>(inputItkImage, cutter, boTimeStep);
00050 }
00051
00052 template <typename TPixel>
00053 void BoundingObjectCutAndCast<TPixel>::ComputeData(mitk::Image* input3D, int boTimeStep)
00054 {
00055 AccessFixedDimensionByItk_2(input3D, CutImageFixedOutputType, 3, this, boTimeStep);
00056 }
00057
00058 }
00059 #endif // of MITKBOUNDINGOBJECTCUTANDCAST_TXX