ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkLaplacianDeformationQuadEdgeMeshFilterWithSoftConstraints.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 #ifndef itkLaplacianDeformationQuadEdgeMeshFilterWithSoftConstraints_h
19 #define itkLaplacianDeformationQuadEdgeMeshFilterWithSoftConstraints_h
20 
22 
23 namespace itk {
41 template< class TInputMesh, class TOutputMesh, class TSolverTraits >
43  public LaplacianDeformationQuadEdgeMeshFilter< TInputMesh, TOutputMesh, TSolverTraits >
44 {
45 public:
48  typedef LaplacianDeformationQuadEdgeMeshFilter< TInputMesh,
49  TOutputMesh,
50  TSolverTraits > Superclass;
53 
55  typedef TInputMesh InputMeshType;
56 
57  itkStaticConstMacro(InputPointDimension, unsigned int, InputMeshType::PointDimension);
58 
60  typedef TOutputMesh OutputMeshType;
61  typedef typename Superclass::OutputPointType OutputPointType;
64 
65  itkStaticConstMacro(OutputPointDimension, unsigned int, OutputMeshType::PointDimension);
66 
67  typedef TSolverTraits SolverTraits;
68  typedef typename Superclass::ValueType ValueType;
69  typedef typename Superclass::MatrixType MatrixType;
71 
72  itkNewMacro(Self);
74 
75  itkSetMacro(Lambda,OutputCoordRepType);
76  itkGetMacro(Lambda,OutputCoordRepType);
77 
78  void SetLocalLambda( OutputPointIdentifier vId, OutputCoordRepType iL );
79 
80 protected:
81 
84  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
85 
90  void FillMatrix(MatrixType & iM, VectorType & iBx, VectorType & iBy, VectorType & iBz);
91 
92  virtual void GenerateData() ITK_OVERRIDE;
93 
96 
100 
101 
102  typedef typename Superclass::RowType RowType;
104  typedef typename Superclass::RowIterator RowIterator;
105 
106  virtual void ComputeVertexIdMapping() ITK_OVERRIDE;
107 
109  OutputCoordRepType m_LambdaSquare;
110 
111  itksys::hash_map< OutputPointIdentifier, OutputCoordRepType > m_LocalLambdaSquare;
112 
113 
114 private:
115  ITK_DISALLOW_COPY_AND_ASSIGN(LaplacianDeformationQuadEdgeMeshFilterWithSoftConstraints);
116 };
117 } // end namespace itk
118 
119 #include "itkLaplacianDeformationQuadEdgeMeshFilterWithSoftConstraints.hxx"
120 
121 #endif
Laplacian deformation with soft constraints (approximating displacement for handle points)...
Light weight base class for most itk classes.
OutputMapPointIdentifier::const_iterator OutputMapPointIdentifierConstIterator
itksys::hash_map< OutputPointIdentifier, OutputPointIdentifier > OutputMapPointIdentifier
itksys::hash_map< OutputPointIdentifier, OutputCoordRepType > RowType
itksys::hash_map< OutputPointIdentifier, OutputVectorType > ConstraintMapType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
(abstract) base class for laplacian surface mesh deformation.
LaplacianDeformationQuadEdgeMeshFilter< TInputMesh, TOutputMesh, TSolverTraits > Superclass