Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkRemeshing.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 mitkRemeshing_h
14 #define mitkRemeshing_h
15 
16 #include <mitkSurface.h>
18 #include <mitkTimeGeometry.h>
19 #include <MitkRemeshingExports.h>
20 
21 namespace mitk
22 {
55  MITKREMESHING_EXPORT Surface::Pointer Remesh(const Surface* surface,
56  TimeStepType t,
57  int numVertices,
58  double gradation,
59  int subsampling = 10,
60  double edgeSplitting = 0.0,
61  int optimizationLevel = 1,
62  bool forceManifold = false,
63  bool boundaryFixing = false);
64 
68  {
69  public:
71  itkFactorylessNewMacro(Self);
72  itkCloneMacro(Self);
73  itkSetMacro(TimeStep, unsigned int);
74  itkSetMacro(NumVertices, int);
75  itkSetMacro(Gradation, double);
76  itkSetMacro(Subsampling, int);
77  itkSetMacro(EdgeSplitting, double);
78  itkSetMacro(OptimizationLevel, int);
79  itkSetMacro(ForceManifold, bool);
80  itkSetMacro(BoundaryFixing, bool);
81 
82  protected:
83  void GenerateData() override;
84 
85  private:
86  RemeshFilter();
87  ~RemeshFilter() override;
88 
89  TimeStepType m_TimeStep;
90  int m_NumVertices;
91  double m_Gradation;
92  int m_Subsampling;
93  double m_EdgeSplitting;
94  int m_OptimizationLevel;
95  bool m_ForceManifold;
96  bool m_BoundaryFixing;
97  };
98 }
99 
100 #endif
mitkSurfaceToSurfaceFilter.h
mitkTimeGeometry.h
MitkRemeshingExports.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkSurface.h
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
MITKREMESHING_EXPORT
#define MITKREMESHING_EXPORT
Definition: MitkRemeshingExports.h:15
mitk::SurfaceToSurfaceFilter
Superclass of all classes getting surfaces (instances of class Surface) as input and generating surfa...
Definition: mitkSurfaceToSurfaceFilter.h:31
mitk::Remesh
MITKREMESHING_EXPORT Surface::Pointer Remesh(const Surface *surface, TimeStepType t, int numVertices, double gradation, int subsampling=10, double edgeSplitting=0.0, int optimizationLevel=1, bool forceManifold=false, bool boundaryFixing=false)
Remesh a surface and store the result in a new surface.
mitk::RemeshFilter
Encapsulates mitk::Remesh function as filter.
Definition: mitkRemeshing.h:67
mitk::TimeStepType
std::size_t TimeStepType
Definition: mitkTimeGeometry.h:27
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::Surface::Pointer
itk::SmartPointer< Self > Pointer
Definition: mitkSurface.h:33