ITK  5.2.0
Insight Toolkit
itkDeformableSimplexMesh3DBalloonForceFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 /*=========================================================================
19  *
20  * Portions of this file are subject to the VTK Toolkit Version 3 copyright.
21  *
22  * Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
23  *
24  * For complete copyright, license and disclaimer of warranty information
25  * please refer to the NOTICE file at the top of the ITK source tree.
26  *
27  *=========================================================================*/
28 #ifndef itkDeformableSimplexMesh3DBalloonForceFilter_h
29 #define itkDeformableSimplexMesh3DBalloonForceFilter_h
30 
32 #include "itkMesh.h"
34 #include "itkCovariantVector.h"
35 
36 #include <set>
37 
38 namespace itk
39 {
52 template <typename TInputMesh, typename TOutputMesh>
54  : public DeformableSimplexMesh3DFilter<TInputMesh, TOutputMesh>
55 {
56 public:
57 
60 
63 
67 
69  itkNewMacro(Self);
70 
73 
75  using InputMeshType = TInputMesh;
76  using OutputMeshType = TOutputMesh;
77  using PointType = typename Superclass::PointType;
78  using GradientIndexType = typename Superclass::GradientIndexType;
79  using GradientIndexValueType = typename Superclass::GradientIndexValueType;
80  using GradientImageType = typename Superclass::GradientImageType;
81 
82  /* Mesh pointer definition. */
83  using InputMeshPointer = typename InputMeshType::Pointer;
84  using OutputMeshPointer = typename OutputMeshType::Pointer;
85 
86  using PixelType = typename InputMeshType::PixelType;
87 
90 
91  itkSetMacro(Kappa, double);
92  itkGetConstMacro(Kappa, double);
93 
94 protected:
96  ~DeformableSimplexMesh3DBalloonForceFilter() override = default;
98 
99  void
100  operator=(const Self &)
101  {}
102 
103  void
104  PrintSelf(std::ostream & os, Indent indent) const override;
105 
109  void
110  ComputeExternalForce(SimplexMeshGeometry * data, const GradientImageType * gradientImage) override;
111 
117  double m_Kappa;
118 }; // end of class
119 } // end namespace itk
120 
121 #ifndef ITK_MANUAL_INSTANTIATION
122 # include "itkDeformableSimplexMesh3DBalloonForceFilter.hxx"
123 #endif
124 
125 #endif // itkDeformableSimplexMesh3DBalloonForceFilter_h
itkCovariantVector.h
itkConstNeighborhoodIterator.h
itk::DeformableSimplexMesh3DBalloonForceFilter::DeformableSimplexMesh3DBalloonForceFilter
DeformableSimplexMesh3DBalloonForceFilter(const Self &)
Definition: itkDeformableSimplexMesh3DBalloonForceFilter.h:97
itk::MeshSource::OutputMeshPointer
typename OutputMeshType::Pointer OutputMeshPointer
Definition: itkMeshSource.h:69
itk::DeformableSimplexMesh3DBalloonForceFilter
Additional to its superclass this model adds an balloon force component to the internal forces.
Definition: itkDeformableSimplexMesh3DBalloonForceFilter.h:53
itk::MeshToMeshFilter::InputMeshPointer
typename InputMeshType::Pointer InputMeshPointer
Definition: itkMeshToMeshFilter.h:66
itk::GTest::TypedefsAndConstructors::Dimension2::PointType
ImageBaseType::PointType PointType
Definition: itkGTestTypedefsAndConstructors.h:51
itk::DeformableSimplexMesh3DBalloonForceFilter::PointType
typename Superclass::PointType PointType
Definition: itkDeformableSimplexMesh3DBalloonForceFilter.h:77
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::DeformableSimplexMesh3DBalloonForceFilter::m_Kappa
double m_Kappa
Definition: itkDeformableSimplexMesh3DBalloonForceFilter.h:117
itk::MeshToMeshFilter::InputMeshType
TInputMesh InputMeshType
Definition: itkMeshToMeshFilter.h:65
itk::SimplexMeshGeometry
handle geometric properties for vertices of a simplx mesh
Definition: itkSimplexMeshGeometry.h:44
itk::DeformableSimplexMesh3DBalloonForceFilter::GradientIndexValueType
typename Superclass::GradientIndexValueType GradientIndexValueType
Definition: itkDeformableSimplexMesh3DBalloonForceFilter.h:79
itk::DeformableSimplexMesh3DBalloonForceFilter::GradientIndexType
typename Superclass::GradientIndexType GradientIndexType
Definition: itkDeformableSimplexMesh3DBalloonForceFilter.h:78
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itkDeformableSimplexMesh3DFilter.h
itkMesh.h
itk::DeformableSimplexMesh3DBalloonForceFilter::operator=
void operator=(const Self &)
Definition: itkDeformableSimplexMesh3DBalloonForceFilter.h:100
itk::DeformableSimplexMesh3DBalloonForceFilter::PixelType
typename InputMeshType::PixelType PixelType
Definition: itkDeformableSimplexMesh3DBalloonForceFilter.h:86
itk::DeformableSimplexMesh3DFilter
Three-dimensional deformable model for image segmentation.
Definition: itkDeformableSimplexMesh3DFilter.h:77
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::DeformableSimplexMesh3DBalloonForceFilter::GradientImageType
typename Superclass::GradientImageType GradientImageType
Definition: itkDeformableSimplexMesh3DBalloonForceFilter.h:80
itk::Image
Templated n-dimensional image class.
Definition: itkImage.h:86
itk::MeshSource::OutputMeshType
TOutputMesh OutputMeshType
Definition: itkMeshSource.h:68
itk::DeformableSimplexMesh3DBalloonForceFilter::GradientIntensityImagePointer
typename GradientIntensityImageType::Pointer GradientIntensityImagePointer
Definition: itkDeformableSimplexMesh3DBalloonForceFilter.h:89