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
mitkRegistrationHelper.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 _mitkRegistrationHelper_h
19 #define _mitkRegistrationHelper_h
20 
21 //ITK
22 #include "itkScalableAffineTransform.h"
23 
24 //MatchPoint
25 #include "mapRegistrationAlgorithmBase.h"
26 #include "mapRegistration.h"
27 
28 //MITK
29 #include <mitkImage.h>
30 #include <mitkDataNode.h>
31 
32 //MITK
35 
36 namespace mitk
37 {
43 {
44 public:
45 
46  typedef ::itk::ScalableAffineTransform< ::mitk::ScalarType,3 > Affine3DTransformType;
47  typedef ::map::core::Registration<3,3> Registration3DType;
48  typedef ::map::core::RegistrationBase RegistrationBaseType;
49 
56  static Affine3DTransformType::Pointer getAffineMatrix(const mitk::MAPRegistrationWrapper* wrapper, bool inverseKernel);
57  static Affine3DTransformType::Pointer getAffineMatrix(const RegistrationBaseType* registration, bool inverseKernel);
58 
59  static bool is3D(const mitk::MAPRegistrationWrapper* wrapper);
60  static bool is3D(const RegistrationBaseType* regBase);
61 ;
66  static bool IsRegNode(const mitk::DataNode* node);
67 
68 private:
69  typedef ::map::core::Registration<3,3>::DirectMappingType RegistrationKernel3DBase;
70  static Affine3DTransformType::Pointer getAffineMatrix(const RegistrationKernel3DBase& kernel);
71 
76 
77 };
78 
79 }
80 
81 #endif
82 
itk::SmartPointer< Self > Pointer
DataCollection - Class to facilitate loading/accessing structured data.
::map::core::RegistrationBase RegistrationBaseType
MAPRegistrationWrapper Wrapper class to allow the handling of MatchPoint registration objects as mitk...
#define MITKMATCHPOINTREGISTRATION_EXPORT
::map::core::Registration< 3, 3 > Registration3DType
::itk::ScalableAffineTransform< ::mitk::ScalarType, 3 > Affine3DTransformType
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66