Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkACVD.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkACVD_h
18 #define mitkACVD_h
19 
20 #include <MitkRemeshingExports.h>
21 #include <mitkSurface.h>
23 
24 namespace mitk
25 {
26  namespace ACVD
27  {
60  unsigned int t,
61  int numVertices,
62  double gradation,
63  int subsampling = 10,
64  double edgeSplitting = 0.0,
65  int optimizationLevel = 1,
66  bool forceManifold = false,
67  bool boundaryFixing = false);
68 
72  {
73  public:
75  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
76 
77  itkSetMacro(TimeStep, unsigned int);
78  itkSetMacro(NumVertices, int);
79  itkSetMacro(Gradation, double);
80  itkSetMacro(Subsampling, int);
81  itkSetMacro(EdgeSplitting, double);
82  itkSetMacro(OptimizationLevel, int);
83  itkSetMacro(ForceManifold, bool);
84  itkSetMacro(BoundaryFixing, bool);
85 
86  protected:
87  void GenerateData() override;
88 
89  private:
90  RemeshFilter();
91  ~RemeshFilter();
92 
93  unsigned int m_TimeStep;
94  int m_NumVertices;
95  double m_Gradation;
96  int m_Subsampling;
97  double m_EdgeSplitting;
98  int m_OptimizationLevel;
99  bool m_ForceManifold;
100  bool m_BoundaryFixing;
101  };
102  }
103 }
104 
105 #endif
MITKREMESHING_EXPORT Surface::Pointer Remesh(Surface::ConstPointer surface, unsigned int 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.
Definition: mitkACVD.cpp:74
#define MITKREMESHING_EXPORT
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Superclass of all classes getting surfaces (instances of class Surface) as input and generating surfa...
Encapsulates mitk::ACVD::Remesh function as filter.
Definition: mitkACVD.h:71