Medical Imaging Interaction Toolkit  2026.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  class ContourModel;
23 
34  {
35  public:
37  itkFactorylessNewMacro(Self);
38  itkCloneMacro(Self);
39 
40  virtual void SetMakeOutputBinary(bool makeOutputBinary);
41  virtual void SetMakeOutputLabelPixelType(bool makeOutputLabelPixelType);
42  itkSetMacro(PaintingPixelValue, int);
43  itkSetMacro(TimeStep, unsigned int);
44 
45  itkGetMacro(MakeOutputBinary, bool);
46  itkGetMacro(MakeOutputLabelPixelType, bool);
47  itkGetMacro(PaintingPixelValue, int);
48 
49  itkBooleanMacro(MakeOutputBinary);
50  itkBooleanMacro(MakeOutputLabelPixelType);
51 
60  itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override;
61 
68  itk::DataObject::Pointer MakeOutput(const DataObjectIdentifierType &name) override;
69 
71 
72  void GenerateOutputInformation() override;
73 
74  void GenerateData() override;
75 
77 
78  using itk::ProcessObject::SetInput;
79  virtual void SetInput(const mitk::ContourModelSet *input);
80 
85  void SetImage(const mitk::Image *refImage);
86 
87  const mitk::Image *GetImage(void);
88 
89  protected:
91 
93 
98 
102 
103  unsigned int m_TimeStep;
104 
106  };
107 
116 
125 }
126 #endif
#define MITKSEGMENTATION_EXPORT
itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
Identifier type for named data objects.
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)
Sets the image which will be used to initialize the output of this filter.
itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override
Allocates a new output object and returns it.
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
A collection of ContourModel instances managed as a single BaseData object.
A time-resolved contour representation consisting of linked vertices in 3D space.
Superclass of all classes generating Images (instances of class Image) as output.
Image class for storing multi-dimensional medical image data.
Definition: mitkImage.h:76
Find image slices visible on a given plane.
MITKSEGMENTATION_EXPORT Image::Pointer ConvertContourModelSetToLabelMask(const mitk::Image *refImage, mitk::ContourModelSet *contourSet)
Converts a contour model set into a binary label mask image.
MITKSEGMENTATION_EXPORT Image::Pointer ConvertContourModelToLabelMask(const mitk::Image *refImage, mitk::ContourModel *contourModel)
Converts a contour model into a binary label mask image.