Medical Imaging Interaction Toolkit  2025.12.02
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 mitkImageMappingHelper_h
15 #define mitkImageMappingHelper_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 
52 
53 
70  bool throwOnOutOfInputAreaError = false, const double& paddingValue = 0,
71  const ResultImageGeometryType* resultGeometry = nullptr,
72  bool throwOnMappingError = true, const double& errorValue = 0, mitk::ImageMappingInterpolator::Type interpolatorType = mitk::ImageMappingInterpolator::Linear);
73 
91  bool throwOnOutOfInputAreaError = false, const double& paddingValue = 0,
92  const ResultImageGeometryType* resultGeometry = nullptr,
93  bool throwOnMappingError = true, const double& errorValue = 0, mitk::ImageMappingInterpolator::Type interpolatorType = mitk::ImageMappingInterpolator::Linear);
94 
95  MITKMATCHPOINTREGISTRATION_EXPORT ResultImageGeometryType::Pointer GenerateSuperSampledGeometry(const ResultImageGeometryType* inputGeometry,
96  double xScaling, double yScaling, double zScaling);
97 
109 
115 
116  }
117 
118 }
119 
120 #endif
#define MITKMATCHPOINTREGISTRATION_EXPORT
Base of all data objects.
Definition: mitkBaseData.h:44
BaseGeometry Describes the geometry of a data object.
Image class for storing images.
Definition: mitkImage.h:70
MAPRegistrationWrapper Wrapper class to allow the handling of MatchPoint registration objects as mitk...
class ITK_EXPORT Image
MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer refineGeometry(const InputImageType *input, const RegistrationType *registration, bool throwOnError=true)
::mitk::BaseGeometry ResultImageGeometryType
::mitk::MAPRegistrationWrapper MITKRegistrationType
MITKMATCHPOINTREGISTRATION_EXPORT ResultImageGeometryType::Pointer GenerateSuperSampledGeometry(const ResultImageGeometryType *inputGeometry, double xScaling, double yScaling, double zScaling)
::map::core::RegistrationBase RegistrationType
MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer map(const InputImageType *input, const RegistrationType *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)
MITKMATCHPOINTREGISTRATION_EXPORT TimeGeometry::Pointer CreateResultTimeGeometry(const mitk::BaseData *input, const mitk::ImageMappingHelper::ResultImageGeometryType *resultGeometry)
MITKMATCHPOINTREGISTRATION_EXPORT bool canRefineGeometry(const RegistrationType *registration)
Find image slices visible on a given plane.