ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkPointSetToImageRegistrationMethod.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 itkPointSetToImageRegistrationMethod_h
19 #define itkPointSetToImageRegistrationMethod_h
20 
21 #include "itkProcessObject.h"
22 #include "itkImage.h"
25 #include "itkDataObjectDecorator.h"
26 
27 namespace itk
28 {
66 template< typename TFixedPointSet, typename TMovingImage >
67 class ITK_TEMPLATE_EXPORT PointSetToImageRegistrationMethod : public ProcessObject
68 {
69 public:
70  ITK_DISALLOW_COPY_AND_ASSIGN(PointSetToImageRegistrationMethod);
71 
77 
79  itkNewMacro(Self);
80 
83 
85  using FixedPointSetType = TFixedPointSet;
86  using FixedPointSetConstPointer = typename FixedPointSetType::ConstPointer;
87 
89  using MovingImageType = TMovingImage;
90  using MovingImageConstPointer = typename MovingImageType::ConstPointer;
91 
95 
98  using TransformPointer = typename TransformType::Pointer;
99 
105 
108  using InterpolatorPointer = typename InterpolatorType::Pointer;
109 
112 
116 
119 
121  itkSetConstObjectMacro(FixedPointSet, FixedPointSetType);
122  itkGetConstObjectMacro(FixedPointSet, FixedPointSetType);
124 
126  itkSetConstObjectMacro(MovingImage, MovingImageType);
127  itkGetConstObjectMacro(MovingImage, MovingImageType);
129 
131  itkSetObjectMacro(Optimizer, OptimizerType);
132  itkGetModifiableObjectMacro(Optimizer, OptimizerType);
134 
136  itkSetObjectMacro(Metric, MetricType);
137  itkGetModifiableObjectMacro(Metric, MetricType);
139 
141  itkSetObjectMacro(Transform, TransformType);
142  itkGetModifiableObjectMacro(Transform, TransformType);
144 
146  itkSetObjectMacro(Interpolator, InterpolatorType);
147  itkGetModifiableObjectMacro(Interpolator, InterpolatorType);
149 
151  virtual void SetInitialTransformParameters(const ParametersType & param);
152 
153  itkGetConstReferenceMacro(InitialTransformParameters, ParametersType);
154 
157  itkGetConstReferenceMacro(LastTransformParameters, ParametersType);
158 
160  void Initialize();
161 
163  const TransformOutputType * GetOutput() const;
164 
168  using Superclass::MakeOutput;
169  DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override;
170 
171  ModifiedTimeType GetMTime() const override;
172 
173 protected:
175  ~PointSetToImageRegistrationMethod() override = default;
176  void PrintSelf(std::ostream & os, Indent indent) const override;
177 
178  void GenerateData() override;
179 
180 private:
183 
186 
189 
192 };
193 } // end namespace itk
194 
195 #ifndef ITK_MANUAL_INSTANTIATION
196 #include "itkPointSetToImageRegistrationMethod.hxx"
197 #endif
198 
199 #endif
Light weight base class for most itk classes.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
This class is a base for the Optimization methods that optimize a single valued function.
typename FixedPointSetType::ConstPointer FixedPointSetConstPointer
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
class ITK_FORWARD_EXPORT ProcessObject
Definition: itkDataObject.h:40
typename MetricType::TransformParametersType ParametersType
Computes similarity between a point set and an image.
typename TransformType::ParametersType TransformParametersType
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:83
typename TransformOutputType::ConstPointer TransformOutputConstPointer
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
typename TransformOutputType::Pointer TransformOutputPointer
Base class for all image interpolaters.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename MovingImageType::ConstPointer MovingImageConstPointer
Base class for PointSet to Image Registration Methods.
SmartPointer< Self > Pointer
typename MetricType::InterpolatorType InterpolatorType