MeanValueSurfaceMapper.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_MeanValueSurfaceMapper_H
21 #define MIRTK_MeanValueSurfaceMapper_H
22 
23 #include "mirtk/NonSymmetricWeightsSurfaceMapper.h"
24 
25 
26 namespace mirtk {
27 
28 
29 /**
30  * Piecewise linear surface map using Floater's mean value convex combination weights
31  *
32  * - Floater (2003). Mean value coordinates. Computer Aided Geometric Design, 20(1):19–37.
33  */
35 {
36  mirtkObjectMacro(MeanValueSurfaceMapper);
37 
38  // ---------------------------------------------------------------------------
39  // Attributes
40 
41  /// Copy attributes of this class from another instance
42  void CopyAttributes(const MeanValueSurfaceMapper &);
43 
44  // ---------------------------------------------------------------------------
45  // Construction/Destruction
46 
47 public:
48 
49  /// Default constructor
51 
52  /// Copy constructor
54 
55  /// Assignment operator
57 
58  /// Destructor
59  virtual ~MeanValueSurfaceMapper();
60 
61  // ---------------------------------------------------------------------------
62  // Execution
63 
64 protected:
65 
66  /// Weight of directed edge (i, j)
67  ///
68  /// \param[in] i Index of start node.
69  /// \param[in] j Index of end node.
70  ///
71  /// \returns Weight of directed edge (i, j).
72  virtual double Weight(int i, int j) const;
73 
74 };
75 
76 
77 } // namespace mirtk
78 
79 #endif // MIRTK_MeanValueSurfaceMapper_H
MeanValueSurfaceMapper()
Default constructor.
virtual double Weight(int i, int j) const
virtual ~MeanValueSurfaceMapper()
Destructor.
Definition: IOConfig.h:41
MeanValueSurfaceMapper & operator=(const MeanValueSurfaceMapper &)
Assignment operator.