Medical Imaging Interaction Toolkit  2023.04.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 mitkContourModelSetToImageFilter_h
14 #define mitkContourModelSetToImageFilter_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::ContourModelSetToImageFilter::m_ReferenceImage
const mitk::Image * m_ReferenceImage
Definition: mitkContourModelSetToImageFilter.h:88
mitk::ImageSource
Superclass of all classes generating Images (instances of class Image) as output.
Definition: mitkImageSource.h:36
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
mitk::ContourModelSetToImageFilter
Fills a given mitk::ContourModelSet into a given mitk::Image.
Definition: mitkContourModelSetToImageFilter.h:27
mitk::ContourModelSetToImageFilter::m_MakeOutputBinary
bool m_MakeOutputBinary
Definition: mitkContourModelSetToImageFilter.h:84
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::BaseDataSource::DataObjectIdentifierType
itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
Definition: mitkBaseDataSource.h:77
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition: MitkSegmentationExports.h:15
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MitkSegmentationExports.h
mitk::ContourModelSet
Definition: mitkContourModelSet.h:26
mitk::ContourModelSetToImageFilter::m_TimeStep
unsigned int m_TimeStep
Definition: mitkContourModelSetToImageFilter.h:86
mitkImageSource.h