go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxNormalizedGradientCorrelationMetric.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 elxNormalizedGradientCorrelationMetric_h
19#define elxNormalizedGradientCorrelationMetric_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
23
24namespace elastix
25{
26
36template <class TElastix>
37class ITK_TEMPLATE_EXPORT NormalizedGradientCorrelationMetric
38 : public itk::NormalizedGradientCorrelationImageToImageMetric<typename MetricBase<TElastix>::FixedImageType,
39 typename MetricBase<TElastix>::MovingImageType>
40 , public MetricBase<TElastix>
41{
42public:
44
51 using Pointer = itk::SmartPointer<Self>;
52 using ConstPointer = itk::SmartPointer<const Self>;
53
55 itkNewMacro(Self);
56
59
64 elxClassNameMacro("NormalizedGradientCorrelation");
65
67 using typename Superclass1::CoordinateRepresentationType;
68 using typename Superclass1::MovingImageType;
69 using typename Superclass1::MovingImagePixelType;
70 using typename Superclass1::MovingImageConstPointer;
71 using typename Superclass1::FixedImageType;
72 using typename Superclass1::FixedImageConstPointer;
73 using typename Superclass1::FixedImageRegionType;
74 using typename Superclass1::TransformType;
75 using typename Superclass1::TransformPointer;
76 using typename Superclass1::InputPointType;
77 using typename Superclass1::OutputPointType;
78 using typename Superclass1::TransformParametersType;
79 using typename Superclass1::TransformJacobianType;
80 using typename Superclass1::InterpolatorType;
82 using typename Superclass1::RealType;
83 using typename Superclass1::GradientPixelType;
84 using typename Superclass1::GradientImageType;
85 using typename Superclass1::GradientImagePointer;
86 using typename Superclass1::GradientImageFilterType;
87 using typename Superclass1::GradientImageFilterPointer;
88 using typename Superclass1::FixedImageMaskType;
89 using typename Superclass1::FixedImageMaskPointer;
90 using typename Superclass1::MovingImageMaskType;
91 using typename Superclass1::MovingImageMaskPointer;
92 using typename Superclass1::MeasureType;
93 using typename Superclass1::DerivativeType;
94 using typename Superclass1::ParametersType;
97 using typename Superclass1::ImageSamplerType;
106
108 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
109
111 itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
112
114 using typename Superclass2::ElastixType;
115 using typename Superclass2::RegistrationType;
117
121 void
122 Initialize() override;
123
129 void
131
132 void
134
135protected:
140
141private:
143};
144
145} // end namespace elastix
146
147#ifndef ITK_MANUAL_INSTANTIATION
148# include "elxNormalizedGradientCorrelationMetric.hxx"
149#endif
150
151#endif // end #ifndef elxNormalizedGradientCorrelationMetric_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
An metric based on the itk::NormalizedGradientCorrelationImageToImageMetric.
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
ITK_DISALLOW_COPY_AND_MOVE(NormalizedGradientCorrelationMetric)
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
elxClassNameMacro("NormalizedGradientCorrelation")
~NormalizedGradientCorrelationMetric() override=default
typename ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
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.
An metric based on the itk::NormalizedGradientCorrelationImageToImageMetric.


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