Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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 
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 
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 
92  double xScaling, double yScaling, double zScaling);
93 
102  MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer refineGeometry(const InputImageType* input, const RegistrationType* registration, bool throwOnError = true);
104  MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer refineGeometry(const InputImageType* input, const MITKRegistrationType* registration, bool throwOnError = true);
105 
111 
112  }
113 
114 }
115 
116 #endif
mitk::ImageMappingInterpolator::BSpline_3
@ BSpline_3
Definition: mitkImageMappingHelper.h:35
mitk::ImageMappingHelper::MITKRegistrationType
::mitk::MAPRegistrationWrapper MITKRegistrationType
Definition: mitkImageMappingHelper.h:44
mitkImage.h
mitk::ImageMappingHelper::RegistrationType
::map::core::RegistrationBase RegistrationType
Definition: mitkImageMappingHelper.h:43
mitk::ImageMappingHelper::canRefineGeometry
MITKMATCHPOINTREGISTRATION_EXPORT bool canRefineGeometry(const RegistrationType *registration)
mitk::ImageMappingInterpolator::WSinc_Hamming
@ WSinc_Hamming
Definition: mitkImageMappingHelper.h:36
mitk::ImageMappingHelper::ResultImageType
::mitk::Image ResultImageType
Definition: mitkImageMappingHelper.h:48
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
mitk::ImageMappingInterpolator::WSinc_Welch
@ WSinc_Welch
Definition: mitkImageMappingHelper.h:37
itk::SmartPointer< Self >
mitkGeometry3D.h
mitk::ImageMappingInterpolator::NearestNeighbor
@ NearestNeighbor
Definition: mitkImageMappingHelper.h:33
MitkMatchPointRegistrationExports.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ImageMappingHelper::InputImageType
::mitk::Image InputImageType
Definition: mitkImageMappingHelper.h:47
mitk::ImageMappingHelper::GenerateSuperSampledGeometry
MITKMATCHPOINTREGISTRATION_EXPORT ResultImageGeometryType::Pointer GenerateSuperSampledGeometry(const ResultImageGeometryType *inputGeometry, double xScaling, double yScaling, double zScaling)
mitk::ImageMappingHelper::map
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)
mitk::BaseGeometry
BaseGeometry Describes the geometry of a data object.
Definition: mitkBaseGeometry.h:94
mitk::ImageMappingInterpolator::Type
Type
Definition: mitkImageMappingHelper.h:30
mitk::ImageMappingInterpolator::Linear
@ Linear
Definition: mitkImageMappingHelper.h:34
mitk::ImageMappingHelper::ResultImageGeometryType
::mitk::BaseGeometry ResultImageGeometryType
Definition: mitkImageMappingHelper.h:46
itk::Image
class ITK_EXPORT Image
Definition: mitkGeometryClipImageFilter.h:25
mitk::ImageMappingHelper::refineGeometry
MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer refineGeometry(const InputImageType *input, const RegistrationType *registration, bool throwOnError=true)
mitk::MAPRegistrationWrapper
MAPRegistrationWrapper Wrapper class to allow the handling of MatchPoint registration objects as mitk...
Definition: mitkMAPRegistrationWrapper.h:36
MITKMATCHPOINTREGISTRATION_EXPORT
#define MITKMATCHPOINTREGISTRATION_EXPORT
Definition: MitkMatchPointRegistrationExports.h:15
mitk::ImageMappingInterpolator
Definition: mitkImageMappingHelper.h:28
mitk::ImageMappingInterpolator::UserDefined
@ UserDefined
Definition: mitkImageMappingHelper.h:32
mitkMAPRegistrationWrapper.h