AuthalicSurfaceMapper.h
1 /*
2  * Medical Image Registration ToolKit (MIRTK)
3  *
4  * Copyright 2016 Imperial College London
5  * Copyright 2016 Andreas Schuh
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 
20 #ifndef MIRTK_AuthalicSurfaceMapper_H
21 #define MIRTK_AuthalicSurfaceMapper_H
22 
23 #include "mirtk/NonSymmetricWeightsSurfaceMapper.h"
24 
25 
26 namespace mirtk {
27 
28 
29 /**
30  * Computes piecewise linear authalic surface map with fixed boundary
31  *
32  * This surface map minimizes the discrete authalic energy outlined in
33  * Desbrun et al. (2002). The coefficients of the sparse linear system of
34  * equations solved correspond to the generalized Barycentric coordinates
35  * in Meyer et al. (2002).
36  *
37  * - Desbrun, Meyer, and Alliez (2002). Intrinsic parameterizations of surface meshes.
38  * Computer Graphics Forum, 21(3), 209–218.
39  * - Meyer et al. (2002). Generalized Barycentric Coordinates on Irregular Polygons.
40  * Journal of Graphics Tools, 7(1), 13–22.
41  */
43 {
44  mirtkObjectMacro(AuthalicSurfaceMapper);
45 
46  // ---------------------------------------------------------------------------
47  // Attributes
48 
49  /// Copy attributes of this class from another instance
50  void CopyAttributes(const AuthalicSurfaceMapper &);
51 
52  // ---------------------------------------------------------------------------
53  // Construction/Destruction
54 
55 public:
56 
57  /// Default constructor
59 
60  /// Copy constructor
62 
63  /// Assignment operator
65 
66  /// Destructor
67  virtual ~AuthalicSurfaceMapper();
68 
69  // ---------------------------------------------------------------------------
70  // Execution
71 
72 protected:
73 
74  /// Weight of directed edge (i, j)
75  ///
76  /// \param[in] i Index of start point.
77  /// \param[in] j Index of end point.
78  ///
79  /// \returns Weight of directed edge (i, j).
80  virtual double Weight(int i, int j) const;
81 
82 };
83 
84 
85 } // namespace mirtk
86 
87 #endif // MIRTK_AuthalicSurfaceMapper_H
AuthalicSurfaceMapper & operator=(const AuthalicSurfaceMapper &)
Assignment operator.
virtual ~AuthalicSurfaceMapper()
Destructor.
virtual double Weight(int i, int j) const
Definition: IOConfig.h:41
AuthalicSurfaceMapper()
Default constructor.