Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkMaskGenerator.cpp
Go to the documentation of this file.
1 #include <mitkMaskGenerator.h>
2 
3 namespace mitk
4 {
5 
7  m_TimeStep(0)
8 {
9  m_inputImage = nullptr;
10 }
11 
13 {
14  return mitk::Image::New();
15 }
16 
17 //typename itk::Region<3>::Pointer MaskGenerator::GetImageRegionOfMask(Image::Pointer image)
18 //{
19 // if (m_InternalMask.IsNull() || m_Modified)
20 // {
21 // MITK_ERROR << "Update MaskGenerator first!";
22 // }
23 
24 // mitk::BaseGeometry::Pointer imageGeometry = image->GetGeometry();
25 // mitk::BaseGeometry::Pointer maskGeometry = m_InternalMask->GetGeometry();
26 
27 
28 //}
29 
30 void MaskGenerator::SetTimeStep(unsigned int timeStep)
31 {
32  if (timeStep != m_TimeStep)
33  {
34  m_TimeStep = timeStep;
35  }
36 }
37 
39 {
40  if (inputImg != m_inputImage)
41  {
42  m_inputImage = inputImg;
43  this->Modified();
44  }
45 }
46 
48 {
49  return m_inputImage;
50 }
51 }
mitk::Image::Pointer m_inputImage
DataCollection - Class to facilitate loading/accessing structured data.
virtual void SetTimeStep(unsigned int timeStep)
virtual mitk::Image::Pointer GetMask()
GetMask must be overridden by derived classes.
static Pointer New()
virtual mitk::Image::Pointer GetReferenceImage()
GetReferenceImage per default returns the inputImage (as set by SetInputImage). If no input image is ...
void SetInputImage(mitk::Image::Pointer inputImg)
SetInputImage is used to set the input image to the mask generator. Some subclasses require an input ...