Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkShapeBasedInterpolationAlgorithm.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkShapeBasedInterpolationAlgorithm_h_Included
18 #define mitkShapeBasedInterpolationAlgorithm_h_Included
19 
20 #include "mitkLegacyAdaptors.h"
23 
24 namespace mitk
25 {
39  {
40  public:
42  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
43 
44  Image::Pointer Interpolate(Image::ConstPointer lowerSlice,
45  unsigned int lowerSliceIndex,
46  Image::ConstPointer upperSlice,
47  unsigned int upperSliceIndex,
48  unsigned int requestedIndex,
49  unsigned int sliceDimension,
50  Image::Pointer resultImage,
51  unsigned int timeStep,
52  Image::ConstPointer referenceImage) override;
53 
54  private:
55  typedef itk::Image<mitk::ScalarType, 2> DistanceFilterImageType;
56 
57  template <typename TPixel, unsigned int VImageDimension>
58  void ComputeDistanceMap(const itk::Image<TPixel, VImageDimension> *, mitk::Image::Pointer &result);
59 
60  template <typename TPixel, unsigned int VImageDimension>
61  void InterpolateIntermediateSlice(itk::Image<TPixel, VImageDimension> *result,
62  const mitk::Image::Pointer &lowerDistanceImage,
63  const mitk::Image::Pointer &upperDistanceImage,
64  float ratio);
65  };
66 
67 } // namespace
68 
69 #endif
Interface class for interpolation algorithms.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44