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
mitkMaskedAlgorithmHelper.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 mitkMaskedAlgorithmHelper_h
19 #define mitkMaskedAlgorithmHelper_h
20 
21 
22 //MatchPoint
23 #include "mapRegistrationAlgorithmBase.h"
24 
25 //MITK
26 #include <mitkImage.h>
27 
28 //MITK
30 
31 namespace mitk
32 {
42  {
43  public:
44 
45  MaskedAlgorithmHelper(map::algorithm::RegistrationAlgorithmBase* algorithm = NULL);
46 
51  bool SetMasks(const mitk::Image* movingMask, const mitk::Image* targetMask);
52 
54  bool CheckSupport(const mitk::Image* movingMask, const mitk::Image* targetMask) const;
55 
57 
58  private:
59  typedef unsigned char MaskPixelType;
60 
61  MaskedAlgorithmHelper& operator = (const MaskedAlgorithmHelper&);
63 
65  template<unsigned int VImageDimension1, unsigned int VImageDimension2>
66  bool DoSetMasks(const mitk::Image* movingMask, const mitk::Image* targetMask);
67 
69  template<typename TPixelType, unsigned int VImageDimension>
70  void DoConvertMask(const itk::Image<TPixelType, VImageDimension>* mask);
72  itk::DataObject::Pointer m_convertResult;
73 
75  };
76 
77 }
78 
79 #endif
80 
itk::SmartPointer< Self > Pointer
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKMATCHPOINTREGISTRATION_EXPORT
Image class for storing images.
Definition: mitkImage.h:76
MaskedAlgorithmHelper Helper class as an easy bridge to set mitk images as masks for registration alg...