FreeBoundarySurfaceMapper.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_FreeBoundarySurfaceMapper_H
21 #define MIRTK_FreeBoundarySurfaceMapper_H
22 
23 #include "mirtk/SurfaceMapper.h"
24 
25 
26 namespace mirtk {
27 
28 
29 /**
30  * Base class of solvers computing a surface map with free boundary values
31  *
32  * Solvers of this type compute a surface parameterization of a non-closed surface
33  * mesh, where the boundary points are not assigned a predefined fixed boundary
34  * map value. These solvers cannot be used to interpolate arbitrary values
35  * given on the boundary at interior points. Instead, the result will always
36  * be a 2D parameterization of the surface embedded in 3D Euclidean space.
37  */
39 {
40  mirtkAbstractMacro(FreeBoundarySurfaceMapper);
41 
42  // ---------------------------------------------------------------------------
43  // Attributes
44 
45  /// Copy attributes of this class from another instance
46  void CopyAttributes(const FreeBoundarySurfaceMapper &);
47 
48  // ---------------------------------------------------------------------------
49  // Construction/Destruction
50 
51 protected:
52 
53  /// Default constructor
55 
56  /// Copy constructor
58 
59  /// Assignment operator
61 
62 public:
63 
64  /// Destructor
66 
67  // ---------------------------------------------------------------------------
68  // Execution
69 
70 protected:
71 
72  /// Initialize filter after input and parameters are set
73  virtual void Initialize();
74 
75  // ---------------------------------------------------------------------------
76  // Auxiliaries
77 
78 public:
79 
80  /// Dimension of map codomain
81  int NumberOfComponents() const;
82 
83 };
84 
85 ////////////////////////////////////////////////////////////////////////////////
86 // Inline
87 ////////////////////////////////////////////////////////////////////////////////
88 
89 // -----------------------------------------------------------------------------
91 {
92  return 2;
93 }
94 
95 
96 } // namespace mirtk
97 
98 #endif // MIRTK_FreeBoundarySurfaceMapper_H
FreeBoundarySurfaceMapper()
Default constructor.
FreeBoundarySurfaceMapper & operator=(const FreeBoundarySurfaceMapper &)
Assignment operator.
virtual void Initialize()
Initialize filter after input and parameters are set.
virtual ~FreeBoundarySurfaceMapper()
Destructor.
Definition: IOConfig.h:41
int NumberOfComponents() const
Dimension of map codomain.