Medical Imaging Interaction Toolkit  2024.06.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 
34  virtual void SetMakeOutputBinary(bool makeOutputBinary);
35  virtual void SetMakeOutputLabelPixelType(bool makeOutputLabelPixelType);
36  itkSetMacro(PaintingPixelValue, int);
37  itkSetMacro(TimeStep, unsigned int);
38 
39  itkGetMacro(MakeOutputBinary, bool);
40  itkGetMacro(MakeOutputLabelPixelType, bool);
41  itkGetMacro(PaintingPixelValue, int);
42 
43  itkBooleanMacro(MakeOutputBinary);
44  itkBooleanMacro(MakeOutputLabelPixelType);
45 
52  itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override;
53 
60  itk::DataObject::Pointer MakeOutput(const DataObjectIdentifierType &name) override;
61 
62  void GenerateInputRequestedRegion() override;
63 
64  void GenerateOutputInformation() override;
65 
66  void GenerateData() override;
67 
68  const mitk::ContourModelSet *GetInput(void);
69 
70  using itk::ProcessObject::SetInput;
71  virtual void SetInput(const mitk::ContourModelSet *input);
72 
77  void SetImage(const mitk::Image *refImage);
78 
79  const mitk::Image *GetImage(void);
80 
81  protected:
83 
84  ~ContourModelSetToImageFilter() override;
85 
89  void InitializeOutputEmpty();
90 
94 
95  unsigned int m_TimeStep;
96 
98  };
99 }
100 #endif
mitk::ContourModelSetToImageFilter::m_ReferenceImage
const mitk::Image * m_ReferenceImage
Definition: mitkContourModelSetToImageFilter.h:97
mitk::ContourModelSetToImageFilter::m_MakeOutputLabelPixelType
bool m_MakeOutputLabelPixelType
Definition: mitkContourModelSetToImageFilter.h:92
mitk::ImageSource
Superclass of all classes generating Images (instances of class Image) as output.
Definition: mitkImageSource.h:36
mitk::ContourModelSetToImageFilter::m_PaintingPixelValue
int m_PaintingPixelValue
Definition: mitkContourModelSetToImageFilter.h:93
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:91
mitk
Find image slices visible on a given plane.
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:95
mitkImageSource.h