ITK  6.0.0
Insight Toolkit
itkLaplacianDeformationQuadEdgeMeshFilterWithSoftConstraints.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 * https://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#ifndef itkLaplacianDeformationQuadEdgeMeshFilterWithSoftConstraints_h
19#define itkLaplacianDeformationQuadEdgeMeshFilterWithSoftConstraints_h
20
22
23namespace itk
24{
42template <class TInputMesh, class TOutputMesh, class TSolverTraits>
44 : public LaplacianDeformationQuadEdgeMeshFilter<TInputMesh, TOutputMesh, TSolverTraits>
45{
46public:
48
54
56 using InputMeshType = TInputMesh;
57
58 static constexpr unsigned int InputPointDimension = InputMeshType::PointDimension;
59
61 using OutputMeshType = TOutputMesh;
62 using typename Superclass::OutputPointType;
63 using typename Superclass::OutputCoordRepType;
64 using typename Superclass::OutputPointIdentifier;
65
66 static constexpr unsigned int OutputPointDimension = OutputMeshType::PointDimension;
67
68 using SolverTraits = TSolverTraits;
69 using typename Superclass::ValueType;
70 using typename Superclass::MatrixType;
71 using typename Superclass::VectorType;
72
73 itkNewMacro(Self);
75
76 itkSetMacro(Lambda, OutputCoordRepType);
77 itkGetMacro(Lambda, OutputCoordRepType);
78
79 void
81
82protected:
85 void
86 PrintSelf(std::ostream & os, Indent indent) const override;
87
92 void
94
95 void
96 GenerateData() override;
97
98 using typename Superclass::ConstraintMapType;
99 using typename Superclass::ConstraintMapConstIterator;
100
101 using typename Superclass::OutputMapPointIdentifier;
102 using typename Superclass::OutputMapPointIdentifierIterator;
103 using typename Superclass::OutputMapPointIdentifierConstIterator;
104
105
106 using typename Superclass::RowType;
107 using typename Superclass::RowConstIterator;
108 using typename Superclass::RowIterator;
109
110 void
112
114 OutputCoordRepType m_LambdaSquare{};
115
116 std::unordered_map<OutputPointIdentifier, OutputCoordRepType> m_LocalLambdaSquare{};
117};
118} // end namespace itk
119
120#include "itkLaplacianDeformationQuadEdgeMeshFilterWithSoftConstraints.hxx"
121
122#endif
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Laplacian deformation with soft constraints (approximating displacement for handle points).
void SetLocalLambda(OutputPointIdentifier vId, OutputCoordRepType iL)
void FillMatrix(MatrixType &iM, VectorType &iBx, VectorType &iBy, VectorType &iBz)
Fill matrix iM and vectors Bx and m_By depending on if one vertex is on the border or not.
void PrintSelf(std::ostream &os, Indent indent) const override
(abstract) base class for laplacian surface mesh deformation.
Light weight base class for most itk classes.
TOutputMesh OutputMeshType
Definition: itkMeshSource.h:68
typename OutputMeshType::PointIdentifier OutputPointIdentifier
typename OutputMeshType::CoordRepType OutputCoordRepType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....