SubdividedBoundarySegmentParameterizer.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_SubdividedBoundarySegmentParameterizer_H
21 #define MIRTK_SubdividedBoundarySegmentParameterizer_H
22 
23 #include "mirtk/BoundarySegmentParameterizer.h"
24 
25 
26 namespace mirtk {
27 
28 
29 /**
30  * Hybrid of uniform and chord length parameterization
31  *
32  * This boundary curve parameterization is equivalent to the chord length
33  * parameterization when less than two boundary segment points are selected.
34  * When all points are selected, the resulting parameterization corresponds
35  * to the uniform parameterization, instead. Otherwise, when more than one
36  * point is selected, each curve segment between selected points is mapped
37  * to the same fraction of the total boundary curve length, with chord length
38  * parameterization within each sub-segment.
39  *
40  * \sa UniformBoundarySegmentParameterizer, ChordLengthBoundarySegmentParameterizer
41  */
43 {
45 
46  // ---------------------------------------------------------------------------
47  // Attributes
48 
49  /// Copy attributes of this class from another instance
50  void CopyAttributes(const SubdividedBoundarySegmentParameterizer &);
51 
52  // ---------------------------------------------------------------------------
53  // Construction/Destruction
54 
55 public:
56 
57  /// Default constructor
59 
60  /// Copy constructor
62 
63  /// Assignment operator
65 
66  /// Destructor
68 
69  /// New copy of this parameterizer
70  virtual BoundarySegmentParameterizer *NewCopy() const;
71 
72  // ---------------------------------------------------------------------------
73  // Execution
74 
75 protected:
76 
77  /// Parameterize boundary curve
78  virtual void Parameterize();
79 
80 };
81 
82 
83 } // namespace mirtk
84 
85 #endif // MIRTK_SubdividedBoundarySegmentParameterizer_H
virtual ~SubdividedBoundarySegmentParameterizer()
Destructor.
Definition: IOConfig.h:41
virtual BoundarySegmentParameterizer * NewCopy() const
New copy of this parameterizer.
SubdividedBoundarySegmentParameterizer & operator=(const SubdividedBoundarySegmentParameterizer &)
Assignment operator.
SubdividedBoundarySegmentParameterizer()
Default constructor.
virtual void Parameterize()
Parameterize boundary curve.