Medical Imaging Interaction Toolkit  2018.4.99-87d68d9f
Medical Imaging Interaction Toolkit
mitkImageGenerationHelper.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 __MITK_IMAGEGENERATIONHELPER_H
14 #define __MITK_IMAGEGENERATIONHELPER_H
15 
16 #include "itkImage.h"
17 #include "itkImageRegionIterator.h"
18 
19 #include "mitkImage.h"
21 
22 
23 
25 
26 namespace mitk
27 {
28 
34 {
35 
36 public:
38 
39  itkNewMacro(Self);
40 
41  typedef itk::Image<int> TestImageType;
42  typedef itk::Array<double> TimeGridType;
43  typedef itk::Array<double> CurveType;
44 
45  itkSetMacro(DimX, unsigned int);
46  itkSetMacro(DimY, unsigned int);
47  itkSetMacro(DimZ, unsigned int);
48  itkGetConstReferenceMacro(DimX, unsigned int);
49  itkGetConstReferenceMacro(DimY, unsigned int);
50  itkGetConstReferenceMacro(DimZ, unsigned int);
51 
52  itkSetMacro(Grid,TimeGridType);
53  itkGetConstReferenceMacro(Grid,TimeGridType);
54 
55  itkSetMacro(Curve, CurveType);
56  itkGetConstReferenceMacro(Curve,CurveType);
57 
58  Image::Pointer GenerateDynamicImageMITK();
59 
60 private:
61  ImageGenerationHelper(): m_DimX(0), m_DimY(0), m_DimZ(0) {};
62  ~ImageGenerationHelper() override{};
63 
64  mitk::Image::Pointer GenerateTestFrame(unsigned int timePointIndex);
65  unsigned int m_DimX, m_DimY, m_DimZ;
66  TimeGridType m_Grid;
67  CurveType m_Curve;
68 
69 
70 };
71 }
72 
73 #endif //__MITK_IMAGEGENERATIONHELPER_H
#define MITKPHARMACOKINETICS_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49
Image::Pointer MITKTESTINGHELPER_EXPORT GenerateTestFrame(double timePoint)