ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkPointSetToPointSetRegistrationMethod.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkPointSetToPointSetRegistrationMethod_h
19 #define itkPointSetToPointSetRegistrationMethod_h
20 
21 #include "itkProcessObject.h"
24 #include "itkDataObjectDecorator.h"
25 
26 namespace itk
27 {
65 template< typename TFixedPointSet, typename TMovingPointSet >
66 class ITK_TEMPLATE_EXPORT PointSetToPointSetRegistrationMethod : public ProcessObject
67 {
68 public:
69  ITK_DISALLOW_COPY_AND_ASSIGN(PointSetToPointSetRegistrationMethod);
70 
76 
78  itkNewMacro(Self);
79 
82 
84  using FixedPointSetType = TFixedPointSet;
85  using FixedPointSetConstPointer = typename FixedPointSetType::ConstPointer;
86 
88  using MovingPointSetType = TMovingPointSet;
89  using MovingPointSetConstPointer = typename MovingPointSetType::ConstPointer;
90 
94 
97  using TransformPointer = typename TransformType::Pointer;
98 
104 
107 
111 
114 
116  itkSetConstObjectMacro(FixedPointSet, FixedPointSetType);
117  itkGetConstObjectMacro(FixedPointSet, FixedPointSetType);
119 
121  itkSetConstObjectMacro(MovingPointSet, MovingPointSetType);
122  itkGetConstObjectMacro(MovingPointSet, MovingPointSetType);
124 
126  itkSetObjectMacro(Optimizer, OptimizerType);
127  itkGetModifiableObjectMacro(Optimizer, OptimizerType);
129 
131  itkSetObjectMacro(Metric, MetricType);
132  itkGetModifiableObjectMacro(Metric, MetricType);
134 
136  itkSetObjectMacro(Transform, TransformType);
137  itkGetModifiableObjectMacro(Transform, TransformType);
139 
141  virtual void SetInitialTransformParameters(const ParametersType & param);
142 
143  itkGetConstReferenceMacro(InitialTransformParameters, ParametersType);
144 
147  itkGetConstReferenceMacro(LastTransformParameters, ParametersType);
148 
150  void Initialize();
151 
153  const TransformOutputType * GetOutput() const;
154 
158  using Superclass::MakeOutput;
159  DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override;
160 
161  ModifiedTimeType GetMTime() const override;
162 
163 protected:
165  ~PointSetToPointSetRegistrationMethod() override = default;
166  void PrintSelf(std::ostream & os, Indent indent) const override;
167 
168  void GenerateData() override;
169 
170 private:
173 
176 
178 
181 };
182 } // end namespace itk
183 
184 #ifndef ITK_MANUAL_INSTANTIATION
185 #include "itkPointSetToPointSetRegistrationMethod.hxx"
186 #endif
187 
188 #endif
typename TransformOutputType::ConstPointer TransformOutputConstPointer
Light weight base class for most itk classes.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
typename MovingPointSetType::ConstPointer MovingPointSetConstPointer
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Computes similarity between two point sets.
class ITK_FORWARD_EXPORT ProcessObject
Definition: itkDataObject.h:40
Base class for PointSet to PointSet Registration Methods.
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:83
Decorates any subclass of itkObject with a DataObject API.
Generic representation for an optimization method.
Definition: itkOptimizer.h:38
unsigned long ModifiedTimeType
Definition: itkIntTypes.h:104
This class is a base for the Optimization methods that optimize a multiple valued function...
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename TransformType::ParametersType TransformParametersType
SmartPointer< Self > Pointer
typename FixedPointSetType::ConstPointer FixedPointSetConstPointer
typename MetricType::TransformParametersType ParametersType