Medical Imaging Interaction Toolkit  2024.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
66  void GenerateInputRequestedRegion() override;
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 
84  ~SurfaceToImageFilter() override;
85 
86  void Stencil3DImage(int time = 0);
87 
90 
92  double m_Tolerance;
93  };
94 
95 } // namespace mitk
96 
97 #endif
mitk::ImageSource
Superclass of all classes generating Images (instances of class Image) as output.
Definition: mitkImageSource.h:36
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
mitk::Surface
Class for storing surfaces (vtkPolyData).
Definition: mitkSurface.h:28
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkSurface.h
mitk::SurfaceToImageFilter::m_MakeOutputBinary
bool m_MakeOutputBinary
Definition: mitkSurfaceToImageFilter.h:88
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitk::SurfaceToImageFilter::m_Tolerance
double m_Tolerance
Definition: mitkSurfaceToImageFilter.h:92
MitkCoreExports.h
mitkCommon.h
mitk::SurfaceToImageFilter
Converts surface data to pixel data. Requires a surface and an image, which header information define...
Definition: mitkSurfaceToImageFilter.h:46
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::SurfaceToImageFilter::m_BackgroundValue
float m_BackgroundValue
Definition: mitkSurfaceToImageFilter.h:91
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15
mitk::SurfaceToImageFilter::m_UShortBinaryPixelType
bool m_UShortBinaryPixelType
Definition: mitkSurfaceToImageFilter.h:89
mitkImageSource.h