Medical Imaging Interaction Toolkit  2016.11.0
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,
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 #ifndef mitkRegEvaluationObject_h
18 #define mitkRegEvaluationObject_h
19 
20 //MITK
21 #include <mitkImage.h>
22 #include <mitkDataNode.h>
23 
24 //MatchPoint
25 #include <mapRegistrationBase.h>
26 #include <mapRegistration.h>
27 #include <mapExceptionObjectMacros.h>
28 #include <mapContinuousElements.h>
29 
30 //MITK
33 
34 namespace mitk
35 {
41  {
42  public:
43 
45 
46  itkNewMacro( Self );
47 
51  virtual void SetRequestedRegionToLargestPossibleRegion();
52 
56  virtual bool RequestedRegionIsOutsideOfTheBufferedRegion();
57 
61  virtual bool VerifyRequestedRegion();
62 
66  virtual void SetRequestedRegion(const itk::DataObject*);
67 
68  itkSetObjectMacro(Registration, mitk::MAPRegistrationWrapper);
69 
71  void SetTargetImage(const mitk::Image* tImg);
73  void SetMovingImage(const mitk::Image* mImg);
74 
75  itkGetObjectMacro(Registration, mitk::MAPRegistrationWrapper);
76  itkGetObjectMacro(TargetImage, mitk::Image);
77  itkGetObjectMacro(MovingImage, mitk::Image);
78 
79  itkGetConstObjectMacro(Registration, mitk::MAPRegistrationWrapper);
80  itkGetConstObjectMacro(TargetImage, mitk::Image);
81  itkGetConstObjectMacro(MovingImage, mitk::Image);
82 
84  void SetTargetNode(const mitk::DataNode* tNode);
86  void SetMovingNode(const mitk::DataNode* mNode);
87 
88  itkGetConstObjectMacro(TargetNode, mitk::DataNode);
89  itkGetConstObjectMacro(MovingNode, mitk::DataNode);
90 
91  protected:
92  typedef ::itk::Image<unsigned char, 3> InternalImageType;
93 
94  template <typename TPixelType, unsigned int VImageDimension >
95  void doConversion(const ::itk::Image<TPixelType,VImageDimension>* input, mitk::Image::Pointer& result) const;
96 
97  virtual void PrintSelf (std::ostream &os, itk::Indent indent) const;
98 
100  virtual ~RegEvaluationObject();
101 
107 
108  private:
109  RegEvaluationObject& operator = (const RegEvaluationObject&);
111  };
112 
113 }
114 
115 #endif
116 
mitk::DataNode::ConstPointer m_MovingNode
Base of all data objects.
Definition: mitkBaseData.h:39
mitk::DataNode::ConstPointer m_TargetNode
mitk::Image::Pointer m_TargetImage
DataCollection - Class to facilitate loading/accessing structured data.
MAPRegistrationWrapper Wrapper class to allow the handling of MatchPoint registration objects as mitk...
::itk::Image< unsigned char, 3 > InternalImageType
#define MITKMATCHPOINTREGISTRATION_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
RegEvaluationObject Class that containes all data to realize an evaluation of registrations via image...
Image class for storing images.
Definition: mitkImage.h:76
mitk::MAPRegistrationWrapper::Pointer m_Registration
mitk::Image::Pointer m_MovingImage
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66