ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkDeformableSimplexMesh3DBalloonForceFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 {
51 template< typename TInputMesh, typename TOutputMesh >
52 class ITK_TEMPLATE_EXPORT DeformableSimplexMesh3DBalloonForceFilter:public DeformableSimplexMesh3DFilter< TInputMesh,
53  TOutputMesh >
54 {
55 public:
58 
61 
65 
67  itkNewMacro(Self);
68 
71 
73  using InputMeshType = TInputMesh;
74  using OutputMeshType = TOutputMesh;
75  using PointType = typename Superclass::PointType;
76  using GradientIndexType = typename Superclass::GradientIndexType;
77  using GradientIndexValueType = typename Superclass::GradientIndexValueType;
78  using GradientImageType = typename Superclass::GradientImageType;
79 
80  /* Mesh pointer definition. */
81  using InputMeshPointer = typename InputMeshType::Pointer;
82  using OutputMeshPointer = typename OutputMeshType::Pointer;
83 
84  using PixelType = typename InputMeshType::PixelType;
85 
88 
89  itkSetMacro(Kappa, double);
90  itkGetConstMacro(Kappa, double);
91 
92 protected:
94  ~DeformableSimplexMesh3DBalloonForceFilter() override = default;
96  {}
97 
98  void operator=(const Self &)
99  {}
100 
101  void PrintSelf(std::ostream & os, Indent indent) const override;
102 
106  void ComputeExternalForce(SimplexMeshGeometry *data,const GradientImageType *gradientImage) override;
107 
113  double m_Kappa;
114 }; // end of class
115 } // end namespace itk
116 
117 #ifndef ITK_MANUAL_INSTANTIATION
118 #include "itkDeformableSimplexMesh3DBalloonForceFilter.hxx"
119 #endif
120 
121 #endif // itkDeformableSimplexMesh3DBalloonForceFilter_h
Light weight base class for most itk classes.
Three-dimensional deformable model for image segmentation.
TOutputMesh OutputMeshType
Definition: itkMeshSource.h:68
typename InputMeshType::Pointer InputMeshPointer
Additional to its superclass this model adds an balloon force component to the internal forces...
typename OutputMeshType::Pointer OutputMeshPointer
Definition: itkMeshSource.h:69
typename GradientIntensityImageType::Pointer GradientIntensityImagePointer
handle geometric properties for vertices of a simplx mesh
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Templated n-dimensional image class.
Definition: itkImage.h:75