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
22#include "itkPCAMetric.h"
23
25#include "itkStackTransform.h"
26
27namespace elastix
28{
64template <class TElastix>
65class ITK_TEMPLATE_EXPORT PCAMetric
66 : public itk::PCAMetric<typename MetricBase<TElastix>::FixedImageType, typename MetricBase<TElastix>::MovingImageType>
67 , public MetricBase<TElastix>
68{
69public:
71
73 using Self = PCAMetric;
77 using Pointer = itk::SmartPointer<Self>;
78 using ConstPointer = itk::SmartPointer<const Self>;
79
81 itkNewMacro(Self);
82
84 itkTypeMacro(PCAMetric, itk::PCAMetric);
85
90 elxClassNameMacro("PCAMetric");
91
93 using typename Superclass1::CoordinateRepresentationType;
94 using typename Superclass1::ScalarType;
95 using typename Superclass1::MovingImageType;
96 using typename Superclass1::MovingImagePixelType;
97 using typename Superclass1::MovingImageConstPointer;
98 using typename Superclass1::FixedImageType;
99 using typename Superclass1::FixedImageConstPointer;
100 using typename Superclass1::FixedImageRegionType;
101 using typename Superclass1::FixedImageSizeType;
102 using typename Superclass1::TransformType;
103 using typename Superclass1::TransformPointer;
104 using typename Superclass1::InputPointType;
105 using typename Superclass1::OutputPointType;
106 using typename Superclass1::TransformParametersType;
107 using typename Superclass1::TransformJacobianType;
108 using typename Superclass1::InterpolatorType;
109 using typename Superclass1::InterpolatorPointer;
110 using typename Superclass1::RealType;
111 using typename Superclass1::GradientPixelType;
112 using typename Superclass1::GradientImageType;
113 using typename Superclass1::GradientImagePointer;
114 using typename Superclass1::FixedImageMaskType;
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
157 void
159
165 void
167
168protected:
170 PCAMetric() = default;
172 ~PCAMetric() override = default;
173
174private:
176};
177
178} // end namespace elastix
179
180#ifndef ITK_MANUAL_INSTANTIATION
181# include "elxPCAMetric.hxx"
182#endif
183
184#endif // end #ifndef elxPCAMetric_h
This class is the elastix base class for all Metrics.
itk::SingleValuedCostFunction ITKBaseType
typename ElastixType::MovingImageType MovingImageType
typename ElastixType::RegistrationBaseType RegistrationType
This metric is based on the AdvancedImageToImageMetric. It is templated over the type of the fixed an...
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
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
void BeforeRegistration() override
itk::SmartPointer< const Self > ConstPointer
elxClassNameMacro("PCAMetric")
itk::SmartPointer< Self > Pointer
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
ImageMaskSpatialObject< Self::FixedImageDimension > FixedImageMaskType
SmartPointer< MovingImageMaskType > MovingImageMaskPointer
typename FixedImageRegionType::SizeType FixedImageSizeType
typename MovingImageLimiterType::OutputType MovingImageLimiterOutputType
typename FixedImageLimiterType::OutputType FixedImageLimiterOutputType
SmartPointer< FixedImageMaskType > FixedImageMaskPointer
typename ImageSamplerType::Pointer ImageSamplerPointer
ImageMaskSpatialObject< Self::MovingImageDimension > MovingImageMaskType
Implements stack of transforms: one for every last dimension index.


Generated on 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo