Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitkSurfaceStampImageFilter.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 mitkSurfaceStampImageFilter_h
14 #define mitkSurfaceStampImageFilter_h
15 
17 #include "mitkCommon.h"
18 #include "mitkImageToImageFilter.h"
19 #include "mitkSurface.h"
20 
21 #include <itkQuadEdgeMesh.h>
22 
23 class vtkPolyData;
24 
25 namespace mitk
26 {
49  {
50  public:
52  itkNewMacro(Self);
53 
54  itkSetMacro(MakeOutputBinary, bool);
55  itkGetMacro(MakeOutputBinary, bool);
56  itkBooleanMacro(MakeOutputBinary);
57 
58  itkSetMacro(OverwriteBackground, bool);
59  itkGetMacro(OverwriteBackground, bool);
60  itkBooleanMacro(OverwriteBackground);
61 
62  itkGetConstMacro(BackgroundValue, float);
63  itkSetMacro(BackgroundValue, float);
64 
65  itkGetConstMacro(ForegroundValue, float);
66  itkSetMacro(ForegroundValue, float);
67 
68  void GenerateInputRequestedRegion() override;
69 
70  void GenerateOutputInformation() override;
71 
72  void GenerateData() override;
73 
74  void SetSurface(mitk::Surface *surface);
75 
76  typedef itk::QuadEdgeMesh<double, 3> MeshType;
77 
78  protected:
80 
81  ~SurfaceStampImageFilter() override;
82 
83  void SurfaceStamp(int time = 0);
84 
85  template <typename TPixel>
86  void SurfaceStampProcessing(itk::Image<TPixel, 3> *input, MeshType *mesh);
87 
88  void SurfaceStampBinaryOutputProcessing(MeshType *mesh);
89 
94 
96  };
97 } // namespace mitk
98 
99 #endif
mitkImageToImageFilter.h
mitk::SurfaceStampImageFilter
Converts surface data to pixel data. Requires a surface and an image, which header information define...
Definition: mitkSurfaceStampImageFilter.h:48
itk::SmartPointer< Self >
mitk::Surface
Class for storing surfaces (vtkPolyData).
Definition: mitkSurface.h:28
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitkSurface.h
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitk::SurfaceStampImageFilter::m_OverwriteBackground
bool m_OverwriteBackground
Definition: mitkSurfaceStampImageFilter.h:91
mitk::SurfaceStampImageFilter::m_ForegroundValue
float m_ForegroundValue
Definition: mitkSurfaceStampImageFilter.h:93
mitkCommon.h
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition: MitkSegmentationExports.h:15
mitk::SurfaceStampImageFilter::MeshType
itk::QuadEdgeMesh< double, 3 > MeshType
Definition: mitkSurfaceStampImageFilter.h:76
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MitkSegmentationExports.h
mitk::SurfaceStampImageFilter::m_Surface
mitk::Surface::Pointer m_Surface
Definition: mitkSurfaceStampImageFilter.h:95
mitk::ImageToImageFilter
Superclass of all classes having one or more Images as input and generating Images as output.
Definition: mitkImageToImageFilter.h:25
mitk::SurfaceStampImageFilter::m_BackgroundValue
float m_BackgroundValue
Definition: mitkSurfaceStampImageFilter.h:92
mitk::SurfaceStampImageFilter::m_MakeOutputBinary
bool m_MakeOutputBinary
Definition: mitkSurfaceStampImageFilter.h:90