Medical Imaging Interaction Toolkit  2018.4.99-65942676
Medical Imaging Interaction Toolkit
mitkImageMappingHelper.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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 
14 #ifndef MITK_IMAGE_MAPPING_HELPER_H
15 #define MITK_IMAGE_MAPPING_HELPER_H
16 
17 #include "mapImageMappingTask.h"
18 #include "mapRegistrationBase.h"
19 #include "mitkImage.h"
20 #include "mitkGeometry3D.h"
21 
23 
25 
26 namespace mitk
27 {
29  {
30  enum Type
31  {
32  UserDefined = 0, //< User may specify the interpolator to use
33  NearestNeighbor = 1, //< use nearest neighbor
34  Linear = 2, //< use linear
35  BSpline_3 = 3, //< use a 3rd order spline
36  WSinc_Hamming = 4, //< use a wsinc with hamming window
37  WSinc_Welch = 5 //< use a wsinc with welch window
38  };
39  };
40 
41  namespace ImageMappingHelper
42  {
43  typedef ::map::core::RegistrationBase RegistrationType;
44  typedef ::mitk::MAPRegistrationWrapper MITKRegistrationType;
45 
46  typedef ::mitk::BaseGeometry ResultImageGeometryType;
49 
65  MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer map(const InputImageType* input, const RegistrationType* registration,
66  bool throwOnOutOfInputAreaError = false, const double& paddingValue = 0,
67  const ResultImageGeometryType* resultGeometry = nullptr,
68  bool throwOnMappingError = true, const double& errorValue = 0, mitk::ImageMappingInterpolator::Type interpolatorType = mitk::ImageMappingInterpolator::Linear);
69 
86  MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer map(const InputImageType* input, const MITKRegistrationType* registration,
87  bool throwOnOutOfInputAreaError = false, const double& paddingValue = 0,
88  const ResultImageGeometryType* resultGeometry = nullptr,
89  bool throwOnMappingError = true, const double& errorValue = 0, mitk::ImageMappingInterpolator::Type interpolatorType = mitk::ImageMappingInterpolator::Linear);
90 
99  MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer refineGeometry(const InputImageType* input, const RegistrationType* registration, bool throwOnError = true);
101  MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer refineGeometry(const InputImageType* input, const MITKRegistrationType* registration, bool throwOnError = true);
102 
105  MITKMATCHPOINTREGISTRATION_EXPORT bool canRefineGeometry(const RegistrationType* registration);
107  MITKMATCHPOINTREGISTRATION_EXPORT bool canRefineGeometry(const MITKRegistrationType* registration);
108 
109  }
110 
111 }
112 
113 #endif
::mitk::MAPRegistrationWrapper MITKRegistrationType
DataCollection - Class to facilitate loading/accessing structured data.
MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer map(const InputImageType *input, const MITKRegistrationType *registration, bool throwOnOutOfInputAreaError=false, const double &paddingValue=0, const ResultImageGeometryType *resultGeometry=nullptr, bool throwOnMappingError=true, const double &errorValue=0, mitk::ImageMappingInterpolator::Type interpolatorType=mitk::ImageMappingInterpolator::Linear)
::mitk::BaseGeometry ResultImageGeometryType
class ITK_EXPORT Image
#define MITKMATCHPOINTREGISTRATION_EXPORT
MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer refineGeometry(const InputImageType *input, const MITKRegistrationType *registration, bool throwOnError=true)
MITKMATCHPOINTREGISTRATION_EXPORT bool canRefineGeometry(const MITKRegistrationType *registration)
::map::core::RegistrationBase RegistrationType