Medical Imaging Interaction Toolkit  2022.04.99-194dd5d8
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 
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 /* MITKCOONSPATCHFILTER_H_HEADER_INCLUDED_C10B22CD */
Superclass of all classes generating Images (instances of class Image) as output. ...
Class for storing surfaces (vtkPolyData).
Definition: mitkSurface.h:28
#define MITKCORE_EXPORT
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
Converts surface data to pixel data. Requires a surface and an image, which header information define...
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
Image class for storing images.
Definition: mitkImage.h:69