Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkRegEvaluationObject.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 #ifndef mitkRegEvaluationObject_h
14 #define mitkRegEvaluationObject_h
15 
16 //MITK
17 #include <mitkImage.h>
18 #include <mitkDataNode.h>
19 
20 //MatchPoint
21 #include <mapRegistrationBase.h>
22 #include <mapRegistration.h>
23 #include <mapExceptionObjectMacros.h>
24 #include <mapContinuousElements.h>
25 
26 //MITK
29 
30 namespace mitk
31 {
37  {
38  public:
39 
41 
42  itkNewMacro( Self );
43 
47  void SetRequestedRegionToLargestPossibleRegion() override;
48 
52  bool RequestedRegionIsOutsideOfTheBufferedRegion() override;
53 
57  bool VerifyRequestedRegion() override;
58 
62  void SetRequestedRegion(const itk::DataObject*) override;
63 
64  itkSetObjectMacro(Registration, mitk::MAPRegistrationWrapper);
65 
67  void SetTargetImage(const mitk::Image* tImg);
69  void SetMovingImage(const mitk::Image* mImg);
70 
71  itkGetObjectMacro(Registration, mitk::MAPRegistrationWrapper);
72  itkGetObjectMacro(TargetImage, mitk::Image);
73  itkGetObjectMacro(MovingImage, mitk::Image);
74 
75  itkGetConstObjectMacro(Registration, mitk::MAPRegistrationWrapper);
76  itkGetConstObjectMacro(TargetImage, mitk::Image);
77  itkGetConstObjectMacro(MovingImage, mitk::Image);
78 
80  void SetTargetNode(const mitk::DataNode* tNode);
82  void SetMovingNode(const mitk::DataNode* mNode);
83 
84  itkGetConstObjectMacro(TargetNode, mitk::DataNode);
85  itkGetConstObjectMacro(MovingNode, mitk::DataNode);
86 
87  protected:
88  typedef ::itk::Image<unsigned char, 3> InternalImageType;
89 
90  template <typename TPixelType, unsigned int VImageDimension >
91  void doConversion(const ::itk::Image<TPixelType,VImageDimension>* input, mitk::Image::Pointer& result) const;
92 
93  void PrintSelf (std::ostream &os, itk::Indent indent) const override;
94 
96  ~RegEvaluationObject() override;
97 
103 
104  private:
105  RegEvaluationObject& operator = (const RegEvaluationObject&);
107  };
108 
109 }
110 
111 #endif
mitkImage.h
mitk::RegEvaluationObject::InternalImageType
::itk::Image< unsigned char, 3 > InternalImageType
Definition: mitkRegEvaluationObject.h:85
mitk::RegEvaluationObject
RegEvaluationObject Class that contains all data to realize an evaluation of registrations via images...
Definition: mitkRegEvaluationObject.h:36
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
itk::SmartPointer< Self >
MitkMatchPointRegistrationExports.h
mitk::RegEvaluationObject::m_TargetNode
mitk::DataNode::ConstPointer m_TargetNode
Definition: mitkRegEvaluationObject.h:101
mitk::RegEvaluationObject::m_TargetImage
mitk::Image::Pointer m_TargetImage
Definition: mitkRegEvaluationObject.h:99
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::RegEvaluationObject::m_MovingNode
mitk::DataNode::ConstPointer m_MovingNode
Definition: mitkRegEvaluationObject.h:102
mitk::RegEvaluationObject::m_MovingImage
mitk::Image::Pointer m_MovingImage
Definition: mitkRegEvaluationObject.h:100
mitk::BaseData
Base of all data objects.
Definition: mitkBaseData.h:42
mitkDataNode.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
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
mitkMAPRegistrationWrapper.h
mitk::BaseData::Pointer
itk::SmartPointer< Self > Pointer
Definition: mitkBaseData.h:46
mitk::RegEvaluationObject::m_Registration
mitk::MAPRegistrationWrapper::Pointer m_Registration
Definition: mitkRegEvaluationObject.h:98
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63