Medical Imaging Interaction Toolkit  2016.11.0
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,
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 
18 #ifndef MITK_IMAGE_MAPPING_HELPER_H
19 #define MITK_IMAGE_MAPPING_HELPER_H
20 
21 #include "mapImageMappingTask.h"
22 #include "mapRegistrationBase.h"
23 #include "mitkImage.h"
24 #include "mitkGeometry3D.h"
25 
27 
29 
30 namespace mitk
31 {
33  {
34  enum Type
35  {
36  UserDefined = 0, //< User may specify the interpolator to use
37  NearestNeighbor = 1, //< use nearest neighbor
38  Linear = 2, //< use linear
39  BSpline_3 = 3, //< use a 3rd order spline
40  WSinc_Hamming = 4, //< use a wsinc with hamming window
41  WSinc_Welch = 5 //< use a wsinc with welch window
42  };
43  };
44 
45  namespace ImageMappingHelper
46  {
47  typedef ::map::core::RegistrationBase RegistrationType;
48  typedef ::mitk::MAPRegistrationWrapper MITKRegistrationType;
49 
50  typedef ::mitk::BaseGeometry ResultImageGeometryType;
53 
69  MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer map(const InputImageType* input, const RegistrationType* registration,
70  bool throwOnOutOfInputAreaError = false, const double& paddingValue = 0,
71  const ResultImageGeometryType* resultGeometry = NULL,
72  bool throwOnMappingError = true, const double& errorValue = 0, mitk::ImageMappingInterpolator::Type interpolatorType = mitk::ImageMappingInterpolator::Linear);
73 
90  MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer map(const InputImageType* input, const MITKRegistrationType* registration,
91  bool throwOnOutOfInputAreaError = false, const double& paddingValue = 0,
92  const ResultImageGeometryType* resultGeometry = NULL,
93  bool throwOnMappingError = true, const double& errorValue = 0, mitk::ImageMappingInterpolator::Type interpolatorType = mitk::ImageMappingInterpolator::Linear);
94 
103  MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer refineGeometry(const InputImageType* input, const RegistrationType* registration, bool throwOnError = true);
105  MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer refineGeometry(const InputImageType* input, const MITKRegistrationType* registration, bool throwOnError = true);
106 
109  MITKMATCHPOINTREGISTRATION_EXPORT bool canRefineGeometry(const RegistrationType* registration);
111  MITKMATCHPOINTREGISTRATION_EXPORT bool canRefineGeometry(const MITKRegistrationType* registration);
112 
113  }
114 
115 }
116 
117 #endif
::mitk::MAPRegistrationWrapper MITKRegistrationType
DataCollection - Class to facilitate loading/accessing structured data.
::mitk::BaseGeometry ResultImageGeometryType
class ITK_EXPORT Image
MITKMATCHPOINTREGISTRATION_EXPORT bool canRefineGeometry(const RegistrationType *registration)
#define MITKMATCHPOINTREGISTRATION_EXPORT
MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer refineGeometry(const InputImageType *input, const RegistrationType *registration, bool throwOnError=true)
MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer map(const InputImageType *input, const RegistrationType *registration, bool throwOnOutOfInputAreaError=false, const double &paddingValue=0, const ResultImageGeometryType *resultGeometry=NULL, bool throwOnMappingError=true, const double &errorValue=0, mitk::ImageMappingInterpolator::Type interpolatorType=mitk::ImageMappingInterpolator::Linear)
::map::core::RegistrationBase RegistrationType