go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxAdvancedMeanSquaresMetric.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 elxAdvancedMeanSquaresMetric_h
19#define elxAdvancedMeanSquaresMetric_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
23
24namespace elastix
25{
26
44template <class TElastix>
45class ITK_TEMPLATE_EXPORT AdvancedMeanSquaresMetric
46 : public itk::AdvancedMeanSquaresImageToImageMetric<typename MetricBase<TElastix>::FixedImageType,
47 typename MetricBase<TElastix>::MovingImageType>
48 , public MetricBase<TElastix>
49{
50public:
52
58 using Pointer = itk::SmartPointer<Self>;
59 using ConstPointer = itk::SmartPointer<const Self>;
60
62 itkNewMacro(Self);
63
66
71 elxClassNameMacro("AdvancedMeanSquares");
72
74 using typename Superclass1::CoordinateRepresentationType;
75 using typename Superclass1::MovingImageType;
76 using typename Superclass1::MovingImagePixelType;
77 using typename Superclass1::MovingImageConstPointer;
78 using typename Superclass1::FixedImageType;
79 using typename Superclass1::FixedImageConstPointer;
80 using typename Superclass1::FixedImageRegionType;
81 using typename Superclass1::TransformType;
82 using typename Superclass1::TransformPointer;
83 using typename Superclass1::InputPointType;
84 using typename Superclass1::OutputPointType;
85 using typename Superclass1::TransformParametersType;
86 using typename Superclass1::TransformJacobianType;
87 using typename Superclass1::InterpolatorType;
88 using typename Superclass1::InterpolatorPointer;
89 using typename Superclass1::RealType;
90 using typename Superclass1::GradientPixelType;
91 using typename Superclass1::GradientImageType;
92 using typename Superclass1::GradientImagePointer;
93 using typename Superclass1::GradientImageFilterType;
94 using typename Superclass1::GradientImageFilterPointer;
95 using typename Superclass1::FixedImageMaskType;
96 using typename Superclass1::FixedImageMaskPointer;
97 using typename Superclass1::MovingImageMaskType;
98 using typename Superclass1::MovingImageMaskPointer;
99 using typename Superclass1::MeasureType;
100 using typename Superclass1::DerivativeType;
101 using typename Superclass1::ParametersType;
104 using typename Superclass1::ImageSamplerType;
113
115 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
116
118 itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
119
121 using typename Superclass2::ElastixType;
122 using typename Superclass2::RegistrationType;
124
128 void
129 Initialize() override;
130
136 void
138
139protected:
143 ~AdvancedMeanSquaresMetric() override = default;
144
145private:
147};
148
149} // end namespace elastix
150
151#ifndef ITK_MANUAL_INSTANTIATION
152# include "elxAdvancedMeanSquaresMetric.hxx"
153#endif
154
155#endif // end #ifndef elxAdvancedMeanSquaresMetric_h
An metric based on the itk::AdvancedMeanSquaresImageToImageMetric.
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
typename Superclass2::ITKBaseType ITKBaseType
elxClassNameMacro("AdvancedMeanSquares")
ITK_DISALLOW_COPY_AND_MOVE(AdvancedMeanSquaresMetric)
itk::SmartPointer< const Self > ConstPointer
~AdvancedMeanSquaresMetric() override=default
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
Compute Mean square difference between two images, based on AdvancedImageToImageMetric....
typename ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
typename MovingImageType::RegionType MovingImageRegionType
typename FixedImageType::PixelType FixedImagePixelType
typename ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
typename MovingImageLimiterType::OutputType MovingImageLimiterOutputType
typename FixedImageLimiterType::OutputType FixedImageLimiterOutputType
typename ImageSamplerType::Pointer ImageSamplerPointer
This class is a base class for any image sampler.
Base class for all ITK limiter function objects.


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