forked from InsightSoftwareConsortium/ITK
/
itkDeformableSimplexMesh3DBalloonForceFilter.h
118 lines (89 loc) · 3.79 KB
/
itkDeformableSimplexMesh3DBalloonForceFilter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkDeformableSimplexMesh3DBalloonForceFilter.h
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
Portions of this code are covered under the VTK copyright.
See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __itkDeformableSimplexMesh3DBalloonForceFilter_h
#define __itkDeformableSimplexMesh3DBalloonForceFilter_h
#include "itkDeformableSimplexMesh3DFilter.h"
#include "itkMesh.h"
#include "itkVector.h"
#include "itkImage.h"
#include "itkConstNeighborhoodIterator.h"
#include "itkCovariantVector.h"
#include <set>
namespace itk
{
/** \class DeformableSimplexMesh3DBalloonForceFilter
* \brief
* Additional to its superclass this model adds an balloon force component to the
* internal forces.
*
* The balloon force can be scaled, by setting the parameter kappa.
*
* \author Thomas Boettger. Division Medical and Biological Informatics, German Cancer Research Center, Heidelberg.
*
*/
template <class TInputMesh, class TOutputMesh>
class ITK_EXPORT DeformableSimplexMesh3DBalloonForceFilter : public DeformableSimplexMesh3DFilter<TInputMesh, TOutputMesh>
{
public:
/** Standard "Self" typedef. */
typedef DeformableSimplexMesh3DBalloonForceFilter Self;
/** Standard "Superclass" typedef. */
typedef DeformableSimplexMesh3DFilter<TInputMesh, TOutputMesh> Superclass;
/** Smart pointer typedef support */
typedef SmartPointer<Self> Pointer;
typedef SmartPointer<const Self> ConstPointer;
/** Method of creation through the object factory. */
itkNewMacro(Self);
/** Run-time type information (and related methods). */
itkTypeMacro(DeformableSimplexMesh3DBalloonForceFilter,DeformableSimplexMesh3DFilter);
/** Some typedefs. */
typedef TInputMesh InputMeshType;
typedef TOutputMesh OutputMeshType;
typedef typename Superclass::PointType PointType;
typedef typename Superclass::GradientIndexType GradientIndexType;
typedef typename Superclass::GradientIndexValueType GradientIndexValueType;
/* Mesh pointer definition. */
typedef typename InputMeshType::Pointer InputMeshPointer;
typedef typename OutputMeshType::Pointer OutputMeshPointer;
typedef typename InputMeshType::PixelType PixelType;
typedef Image<PixelType, 3> GradientIntensityImageType;
typedef typename GradientIntensityImageType::Pointer GradientIntensityImagePointer;
itkSetMacro(Kappa, double);
itkGetConstMacro(Kappa, double);
protected:
DeformableSimplexMesh3DBalloonForceFilter();
~DeformableSimplexMesh3DBalloonForceFilter();
DeformableSimplexMesh3DBalloonForceFilter(const Self&)
{
}
void operator=(const Self&)
{
}
void PrintSelf(std::ostream& os, Indent indent) const;
/**
* Compute the external force component
*/
virtual void ComputeExternalForce(SimplexMeshGeometry * data);
/** Parameters definitions. */
/**
* scalar for balloon force
*/
double m_Kappa;
}; // end of class
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
#include "itkDeformableSimplexMesh3DBalloonForceFilter.txx"
#endif
#endif //__itkDeformableSimplexMesh3DBalloonForceFilter_H