Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitkImageToContourFilter.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 mitkImageToContourFilter_h
14 #define mitkImageToContourFilter_h
15 
16 //#include "MitkSBExports.h"
18 #include "itkImage.h"
19 #include "mitkImage.h"
21 #include "mitkSurface.h"
22 #include "vtkCellArray.h"
23 #include "vtkPolyData.h"
24 #include "vtkPolygon.h"
26 
27 #include "mitkProgressBar.h"
28 
29 namespace mitk
30 {
42  {
43  public:
45  itkFactorylessNewMacro(Self);
46  itkCloneMacro(Self);
47 
54  itkSetMacro(SliceGeometry, BaseGeometry *);
55 
56  // typedef unsigned int VDimension;
57  typedef itk::PolyLineParametricPath<2> PolyLineParametricPath2D;
58  typedef PolyLineParametricPath2D::VertexListType ContourPath;
59 
65  void SetUseProgressBar(bool);
66 
72  void SetProgressStepSize(unsigned int stepSize);
73 
78  itkSetMacro (ContourValue, ScalarType);
79 
80  protected:
82  ~ImageToContourFilter() override;
83  void GenerateData() override;
84  void GenerateOutputInformation() override;
85 
86  private:
87  const BaseGeometry *m_SliceGeometry;
88  bool m_UseProgressBar;
89  unsigned int m_ProgressStepSize;
90  ScalarType m_ContourValue;
91 
92  template <typename TPixel, unsigned int VImageDimension>
93  void Itk2DContourExtraction(const itk::Image<TPixel, VImageDimension> *sliceImage);
94 
95  }; // class
96 
97 } // namespace
98 #endif
mitkImage.h
mitkImageToSurfaceFilter.h
mitk::ImageToContourFilter::PolyLineParametricPath2D
itk::PolyLineParametricPath< 2 > PolyLineParametricPath2D
Definition: mitkImageToContourFilter.h:54
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkSurface.h
mitk::ImageToContourFilter
A filter that can extract contours out of a 2D binary image.
Definition: mitkImageToContourFilter.h:41
itkContourExtractor2DImageFilter.h
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitk::BaseGeometry
BaseGeometry Describes the geometry of a data object.
Definition: mitkBaseGeometry.h:94
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition: MitkSegmentationExports.h:15
mitk::ImageToSurfaceFilter
Converts pixel data to surface data by using a threshold The mitkImageToSurfaceFilter is used to crea...
Definition: mitkImageToSurfaceFilter.h:50
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MitkSegmentationExports.h
mitkProgressBar.h
mitk::ImageToContourFilter::ContourPath
PolyLineParametricPath2D::VertexListType ContourPath
Definition: mitkImageToContourFilter.h:58
mitk::ScalarType
double ScalarType
Definition: mitkNumericConstants.h:20