ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkTwoProjectionImageRegistrationMethod.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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 itkTwoProjectionImageRegistrationMethod_h
19#define itkTwoProjectionImageRegistrationMethod_h
20
21#include "itkProcessObject.h"
22#include "itkImage.h"
26
27namespace itk
28{
29
64template <typename TFixedImage, typename TMovingImage>
66{
67public:
68 ITK_DISALLOW_COPY_AND_MOVE(TwoProjectionImageRegistrationMethod);
69
75
77 itkNewMacro(Self);
78
80 itkOverrideGetNameOfClassMacro(TwoProjectionImageRegistrationMethod);
81
83 using FixedImageType = TFixedImage;
84 using FixedImageConstPointer = typename FixedImageType::ConstPointer;
85
87 using MovingImageType = TMovingImage;
88 using MovingImageConstPointer = typename MovingImageType::ConstPointer;
89
94
97 using TransformPointer = typename TransformType::Pointer;
98
104
107 using InterpolatorPointer = typename InterpolatorType::Pointer;
108
111
115
118
123 void
125
127 void
129
131 void
132 SetFixedImage1(const FixedImageType * fixedImage1);
133 void
134 SetFixedImage2(const FixedImageType * fixedImage2);
135 itkGetConstObjectMacro(FixedImage1, FixedImageType);
136 itkGetConstObjectMacro(FixedImage2, FixedImageType);
137
139 void
140 SetMovingImage(const MovingImageType * movingImage);
141 itkGetConstObjectMacro(MovingImage, MovingImageType);
142
144 itkSetObjectMacro(Optimizer, OptimizerType);
145 itkGetConstObjectMacro(Optimizer, OptimizerType);
146
148 itkSetObjectMacro(Metric, MetricType);
149 itkGetConstObjectMacro(Metric, MetricType);
150
152 itkSetObjectMacro(Transform, TransformType);
153 itkGetConstObjectMacro(Transform, TransformType);
154
156 itkSetObjectMacro(Interpolator1, InterpolatorType);
157 itkSetObjectMacro(Interpolator2, InterpolatorType);
158 itkGetConstObjectMacro(Interpolator1, InterpolatorType);
159 itkGetConstObjectMacro(Interpolator2, InterpolatorType);
160
162 virtual void
164 itkGetConstReferenceMacro(InitialTransformParameters, ParametersType);
165
168 itkGetConstReferenceMacro(LastTransformParameters, ParametersType);
169
177 void
179 void
185 itkGetConstReferenceMacro(FixedImageRegion1, FixedImageRegionType);
186 itkGetConstReferenceMacro(FixedImageRegion2, FixedImageRegionType);
189 itkGetMacro(FixedImageRegionDefined1, bool);
190 itkGetMacro(FixedImageRegionDefined2, bool);
195 itkSetMacro(FixedImageRegionDefined1, bool);
196 itkSetMacro(FixedImageRegionDefined2, bool);
197
199 virtual void
201
203 const TransformOutputType *
204 GetOutput() const;
205
211
212protected:
215 void
216 PrintSelf(std::ostream & os, Indent indent) const override;
217
220 void
221 GenerateData() override;
222
224 itkSetMacro(LastTransformParameters, ParametersType);
225
226
227private:
230
234
238
241
246};
247
248} // end namespace itk
249
250
251#ifndef ITK_MANUAL_INSTANTIATION
252# include "itkTwoProjectionImageRegistrationMethod.hxx"
253#endif
254
255#endif
Decorates any subclass of itkObject with a DataObject API.
SmartPointer< Self > Pointer
Control indentation during Print() invocation.
Definition itkIndent.h:53
Generic representation for an optimization method.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx)
Make a DataObject of the correct type to used as the specified output.
This class is a base for the Optimization methods that optimize a single valued function.
Implements transparent reference counting.
Transform points and vectors from an input space to an output space.
Computes similarity between two fixed images and one fixed image.
InterpolateImageFunction< MovingImageType, CoordinateRepresentationType > InterpolatorType
Transform< CoordinateRepresentationType, Self::MovingImageDimension, Self::FixedImageDimension > TransformType
void PrintSelf(std::ostream &os, Indent indent) const override
void SetFixedImage2(const FixedImageType *fixedImage2)
~TwoProjectionImageRegistrationMethod() override=default
typename MetricType::TransformParametersType ParametersType
const TransformOutputType * GetOutput() const
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
void SetFixedImage1(const FixedImageType *fixedImage1)
void SetFixedImageRegion2(const FixedImageRegionType &region2)
typename TransformOutputType::ConstPointer TransformOutputConstPointer
TwoImageToOneImageMetric< FixedImageType, MovingImageType > MetricType
void SetMovingImage(const MovingImageType *movingImage)
virtual void SetInitialTransformParameters(const ParametersType &param)
typename MetricType::FixedImageRegionType FixedImageRegionType
void SetFixedImageRegion1(const FixedImageRegionType &region1)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)