Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkSurfaceToImageFilter.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 mitkSurfaceToImageFilter_h
14 #define mitkSurfaceToImageFilter_h
15 
16 #include "MitkCoreExports.h"
17 #include "mitkCommon.h"
18 #include "mitkImageSource.h"
19 #include "mitkSurface.h"
20 
21 class vtkPolyData;
22 
23 namespace mitk
24 {
47  {
48  public:
50  itkFactorylessNewMacro(Self);
51  itkCloneMacro(Self);
52  itkSetMacro(MakeOutputBinary, bool);
53  itkGetMacro(MakeOutputBinary, bool);
54  itkBooleanMacro(MakeOutputBinary);
55 
56  itkSetMacro(UShortBinaryPixelType, bool);
57  itkGetMacro(UShortBinaryPixelType, bool);
58  itkBooleanMacro(UShortBinaryPixelType);
59 
60  itkGetConstMacro(BackgroundValue, float);
61  itkSetMacro(BackgroundValue, float);
62 
63  itkGetConstMacro(Tolerance, double);
64  itkSetMacro(Tolerance, double);
65 
67 
68  void GenerateOutputInformation() override;
69 
70  void GenerateData() override;
71 
72  const mitk::Surface *GetInput(void);
73 
74  using itk::ProcessObject::SetInput;
75  virtual void SetInput(const mitk::Surface *surface);
76 
77  void SetImage(const mitk::Image *source);
78 
79  const mitk::Image *GetImage(void);
80 
81  protected:
83 
85 
86  void Stencil3DImage(int time = 0);
87 
90 
92  double m_Tolerance;
93  };
94 
100 
101 } // namespace mitk
102 
103 #endif
#define MITKCORE_EXPORT
Superclass of all classes generating Images (instances of class Image) as output.
Image class for storing images.
Definition: mitkImage.h:70
Converts surface data to pixel data. Requires a surface and an image, which header information define...
virtual void SetInput(const mitk::Surface *surface)
void GenerateData() override
void SetImage(const mitk::Image *source)
const mitk::Surface * GetInput(void)
const mitk::Image * GetImage(void)
void GenerateOutputInformation() override
void GenerateInputRequestedRegion() override
void Stencil3DImage(int time=0)
Class for storing surfaces (vtkPolyData).
Definition: mitkSurface.h:29
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
Find image slices visible on a given plane.
MITKCORE_EXPORT mitk::Image::Pointer ConvertSurfaceToLabelMask(const mitk::Image *refImage, const mitk::Surface *surface)