Medical Imaging Interaction Toolkit  2025.08.99-f7084adb
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  class ContourModel;
23 
29  {
30  public:
32  itkFactorylessNewMacro(Self);
33  itkCloneMacro(Self);
34 
35  virtual void SetMakeOutputBinary(bool makeOutputBinary);
36  virtual void SetMakeOutputLabelPixelType(bool makeOutputLabelPixelType);
37  itkSetMacro(PaintingPixelValue, int);
38  itkSetMacro(TimeStep, unsigned int);
39 
40  itkGetMacro(MakeOutputBinary, bool);
41  itkGetMacro(MakeOutputLabelPixelType, bool);
42  itkGetMacro(PaintingPixelValue, int);
43 
44  itkBooleanMacro(MakeOutputBinary);
45  itkBooleanMacro(MakeOutputLabelPixelType);
46 
53  itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override;
54 
61  itk::DataObject::Pointer MakeOutput(const DataObjectIdentifierType &name) override;
62 
63  void GenerateInputRequestedRegion() override;
64 
65  void GenerateOutputInformation() override;
66 
67  void GenerateData() override;
68 
69  const mitk::ContourModelSet *GetInput(void);
70 
71  using itk::ProcessObject::SetInput;
72  virtual void SetInput(const mitk::ContourModelSet *input);
73 
78  void SetImage(const mitk::Image *refImage);
79 
80  const mitk::Image *GetImage(void);
81 
82  protected:
84 
85  ~ContourModelSetToImageFilter() override;
86 
90  void InitializeOutputEmpty();
91 
95 
96  unsigned int m_TimeStep;
97 
99  };
100 
106 
112 }
113 #endif
mitk::ContourModelSetToImageFilter::m_ReferenceImage
const mitk::Image * m_ReferenceImage
Definition: mitkContourModelSetToImageFilter.h:98
mitk::ContourModelSetToImageFilter::m_MakeOutputLabelPixelType
bool m_MakeOutputLabelPixelType
Definition: mitkContourModelSetToImageFilter.h:93
mitk::ConvertContourModelSetToLabelMask
MITKSEGMENTATION_EXPORT Image::Pointer ConvertContourModelSetToLabelMask(const mitk::Image *refImage, mitk::ContourModelSet *contourSet)
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:94
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
itk::SmartPointer< Self >
mitk::ContourModelSetToImageFilter
Fills a given mitk::ContourModelSet into a given mitk::Image.
Definition: mitkContourModelSetToImageFilter.h:28
mitk::ContourModelSetToImageFilter::m_MakeOutputBinary
bool m_MakeOutputBinary
Definition: mitkContourModelSetToImageFilter.h:92
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
mitk::ContourModel
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
Definition: mitkContourModel.h:47
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:96
mitkImageSource.h
mitk::ConvertContourModelToLabelMask
MITKSEGMENTATION_EXPORT Image::Pointer ConvertContourModelToLabelMask(const mitk::Image *refImage, mitk::ContourModel *contourModel)