UniformBoundarySegmentParameterizer.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_UniformBoundarySegmentParameterizer_H
21 #define MIRTK_UniformBoundarySegmentParameterizer_H
22 
23 #include "mirtk/BoundarySegmentParameterizer.h"
24 
25 
26 namespace mirtk {
27 
28 
29 /**
30  * Boundary curve parameterization with uniform distance of curve points
31  *
32  * This boundary curve parameterization is referred to as uniform
33  * parameterization in Floater (1997).
34  *
35  * - Floater (1997). Parametrization and smooth approximation of surface triangulations.
36  * Computer Aided Geometric Design, 14(3), 231–250.
37  */
39 {
40  mirtkObjectMacro(UniformBoundarySegmentParameterizer);
41 
42  // ---------------------------------------------------------------------------
43  // Attributes
44 
45  /// Copy attributes of this class from another instance
46  void CopyAttributes(const UniformBoundarySegmentParameterizer &);
47 
48  // ---------------------------------------------------------------------------
49  // Construction/Destruction
50 
51 public:
52 
53  /// Default constructor
55 
56  /// Copy constructor
58 
59  /// Assignment operator
61 
62  /// Destructor
64 
65  /// New copy of this parameterizer
66  virtual BoundarySegmentParameterizer *NewCopy() const;
67 
68  // ---------------------------------------------------------------------------
69  // Execution
70 
71 protected:
72 
73  /// Parameterize boundary curve
74  virtual void Parameterize();
75 
76 };
77 
78 
79 } // namespace mirtk
80 
81 #endif // MIRTK_UniformBoundarySegmentParameterizer_H
UniformBoundarySegmentParameterizer & operator=(const UniformBoundarySegmentParameterizer &)
Assignment operator.
virtual void Parameterize()
Parameterize boundary curve.
virtual ~UniformBoundarySegmentParameterizer()
Destructor.
Definition: IOConfig.h:41
UniformBoundarySegmentParameterizer()
Default constructor.
virtual BoundarySegmentParameterizer * NewCopy() const
New copy of this parameterizer.