go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxPCAMetric.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
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 elxPCAMetric_h
19#define elxPCAMetric_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
23
25#include "itkStackTransform.h"
26
27namespace elastix
28{
62template <class TElastix>
63class ITK_TEMPLATE_EXPORT PCAMetric
64 : public itk::PCAMetric<typename MetricBase<TElastix>::FixedImageType, typename MetricBase<TElastix>::MovingImageType>
65 , public MetricBase<TElastix>
66{
67public:
69
71 using Self = PCAMetric;
75 using Pointer = itk::SmartPointer<Self>;
76 using ConstPointer = itk::SmartPointer<const Self>;
77
79 itkNewMacro(Self);
80
82 itkTypeMacro(PCAMetric, itk::PCAMetric);
83
88 elxClassNameMacro("PCAMetric");
89
91 using typename Superclass1::CoordinateRepresentationType;
92 using typename Superclass1::ScalarType;
93 using typename Superclass1::MovingImageType;
94 using typename Superclass1::MovingImagePixelType;
95 using typename Superclass1::MovingImageConstPointer;
96 using typename Superclass1::FixedImageType;
97 using typename Superclass1::FixedImageConstPointer;
98 using typename Superclass1::FixedImageRegionType;
100 using typename Superclass1::TransformType;
101 using typename Superclass1::TransformPointer;
102 using typename Superclass1::InputPointType;
103 using typename Superclass1::OutputPointType;
104 using typename Superclass1::TransformParametersType;
105 using typename Superclass1::TransformJacobianType;
106 using typename Superclass1::InterpolatorType;
107 using typename Superclass1::InterpolatorPointer;
108 using typename Superclass1::RealType;
109 using typename Superclass1::GradientPixelType;
110 using typename Superclass1::GradientImageType;
111 using typename Superclass1::GradientImagePointer;
112 using typename Superclass1::GradientImageFilterType;
113 using typename Superclass1::GradientImageFilterPointer;
114 using typename Superclass1::FixedImageMaskType;
115 using typename Superclass1::FixedImageMaskPointer;
116 using typename Superclass1::MovingImageMaskType;
117 using typename Superclass1::MovingImageMaskPointer;
118 using typename Superclass1::MeasureType;
119 using typename Superclass1::DerivativeType;
120 using typename Superclass1::ParametersType;
123 using typename Superclass1::ImageSamplerType;
132
134 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
135
137 itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
138
140 using typename Superclass2::ElastixType;
141 using typename Superclass2::RegistrationType;
143
150
154 void
155 Initialize() override;
156
162 void
164
165protected:
167 PCAMetric() = default;
169 ~PCAMetric() override = default;
170
171private:
173};
174
175} // end namespace elastix
176
177#ifndef ITK_MANUAL_INSTANTIATION
178# include "elxPCAMetric.hxx"
179#endif
180
181#endif // end #ifndef elxPCAMetric_h
This class is the elastix base class for all Metrics.
Definition: elxMetricBase.h:73
itk::SingleValuedCostFunction ITKBaseType
Definition: elxMetricBase.h:97
typename ElastixType::MovingImageType MovingImageType
Definition: elxMetricBase.h:92
typename ElastixType::RegistrationBaseType RegistrationType
This metric is based on the AdvancedImageToImageMetric. It is templated over the type of the fixed an...
Definition: elxPCAMetric.h:66
ITK_DISALLOW_COPY_AND_MOVE(PCAMetric)
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
void BeforeEachResolution() override
~PCAMetric() override=default
void Initialize() override
typename Superclass2::ITKBaseType ITKBaseType
Definition: elxPCAMetric.h:142
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
itk::SmartPointer< const Self > ConstPointer
Definition: elxPCAMetric.h:76
elxClassNameMacro("PCAMetric")
itk::SmartPointer< Self > Pointer
Definition: elxPCAMetric.h:75
Base class for deformable transform using a B-spline representation.
This class combines two transforms: an 'initial transform' with a 'current transform'.
typename TransformType::ScalarType ScalarType
This class is a base class for any image sampler.
Base class for all ITK limiter function objects.
typename ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
typename MovingImageType::RegionType MovingImageRegionType
typename FixedImageType::PixelType FixedImagePixelType
typename ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
typename FixedImageRegionType::SizeType FixedImageSizeType
Definition: itkPCAMetric.h:45
typename MovingImageLimiterType::OutputType MovingImageLimiterOutputType
typename FixedImageLimiterType::OutputType FixedImageLimiterOutputType
typename ImageSamplerType::Pointer ImageSamplerPointer
Implements stack of transforms: one for every last dimension index.


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo