Medical Imaging Interaction Toolkit  2021.10.00
Medical Imaging Interaction Toolkit
mitkContourModelSetToImageFilter.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_CONTOURMODEL_SOURCE_H
14 #define _MITK_CONTOURMODEL_SOURCE_H
15 
17 #include <mitkImageSource.h>
18 
19 namespace mitk
20 {
21  class ContourModelSet;
22 
28  {
29  public:
31  itkFactorylessNewMacro(Self);
32  itkCloneMacro(Self);
33  itkSetMacro(MakeOutputBinary, bool);
34  itkGetMacro(MakeOutputBinary, bool);
35  itkBooleanMacro(MakeOutputBinary);
36 
37  itkSetMacro(TimeStep, unsigned int);
38 
45  itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override;
46 
53  itk::DataObject::Pointer MakeOutput(const DataObjectIdentifierType &name) override;
54 
55  void GenerateInputRequestedRegion() override;
56 
57  void GenerateOutputInformation() override;
58 
59  void GenerateData() override;
60 
61  const mitk::ContourModelSet *GetInput(void);
62 
63  using itk::ProcessObject::SetInput;
64  virtual void SetInput(const mitk::ContourModelSet *input);
65 
70  void SetImage(const mitk::Image *refImage);
71 
72  const mitk::Image *GetImage(void);
73 
74  protected:
76 
77  ~ContourModelSetToImageFilter() override;
78 
82  void InitializeOutputEmpty();
83 
85 
86  unsigned int m_TimeStep;
87 
89  };
90 }
91 #endif // #_MITK_CONTOURMODEL_SOURCE_H
Superclass of all classes generating Images (instances of class Image) as output. ...
itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
Superclass of all classes generating some kind of mitk::BaseData.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
Image class for storing images.
Definition: mitkImage.h:69
Fills a given mitk::ContourModelSet into a given mitk::Image.