Medical Imaging Interaction Toolkit  2025.12.02
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 
64 
65  void GenerateOutputInformation() override;
66 
67  void GenerateData() override;
68 
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 
86 
91 
95 
96  unsigned int m_TimeStep;
97 
99  };
100 
106 
112 }
113 #endif
#define MITKSEGMENTATION_EXPORT
itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
Fills a given mitk::ContourModelSet into a given mitk::Image.
mitkClassMacro(ContourModelSetToImageFilter, ImageSource)
void GenerateOutputInformation() override
const mitk::ContourModelSet * GetInput(void)
void SetImage(const mitk::Image *refImage)
Set the image which will be used to initialize the output of this filter.
itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override
void InitializeOutputEmpty()
Initializes the volume of the output image with zeros.
void GenerateInputRequestedRegion() override
virtual void SetMakeOutputBinary(bool makeOutputBinary)
virtual void SetMakeOutputLabelPixelType(bool makeOutputLabelPixelType)
virtual void SetInput(const mitk::ContourModelSet *input)
const mitk::Image * GetImage(void)
itk::DataObject::Pointer MakeOutput(const DataObjectIdentifierType &name) override
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
Superclass of all classes generating Images (instances of class Image) as output.
Image class for storing images.
Definition: mitkImage.h:70
Find image slices visible on a given plane.
MITKSEGMENTATION_EXPORT Image::Pointer ConvertContourModelSetToLabelMask(const mitk::Image *refImage, mitk::ContourModelSet *contourSet)
MITKSEGMENTATION_EXPORT Image::Pointer ConvertContourModelToLabelMask(const mitk::Image *refImage, mitk::ContourModel *contourModel)