go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxNormalizedMutualInformationMetric.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 elxNormalizedMutualInformationMetric_h
19#define elxNormalizedMutualInformationMetric_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
23
24namespace elastix
25{
26
72template <class TElastix>
73class ITK_TEMPLATE_EXPORT NormalizedMutualInformationMetric
75 typename MetricBase<TElastix>::FixedImageType,
76 typename MetricBase<TElastix>::MovingImageType>
77 , public MetricBase<TElastix>
78{
79public:
81
88 using Pointer = itk::SmartPointer<Self>;
89 using ConstPointer = itk::SmartPointer<const Self>;
90
92 itkNewMacro(Self);
93
96
101 elxClassNameMacro("NormalizedMutualInformation");
102
104 using typename Superclass1::CoordinateRepresentationType;
105 using typename Superclass1::MovingImageType;
106 using typename Superclass1::MovingImagePixelType;
107 using typename Superclass1::MovingImageConstPointer;
108 using typename Superclass1::FixedImageType;
109 using typename Superclass1::FixedImageConstPointer;
110 using typename Superclass1::FixedImageRegionType;
111 using typename Superclass1::TransformType;
112 using typename Superclass1::TransformPointer;
113 using typename Superclass1::InputPointType;
114 using typename Superclass1::OutputPointType;
115 using typename Superclass1::TransformParametersType;
116 using typename Superclass1::TransformJacobianType;
117 using typename Superclass1::InterpolatorType;
118 using typename Superclass1::InterpolatorPointer;
119 using typename Superclass1::RealType;
120 using typename Superclass1::GradientPixelType;
121 using typename Superclass1::GradientImageType;
122 using typename Superclass1::GradientImagePointer;
123 using typename Superclass1::GradientImageFilterType;
124 using typename Superclass1::GradientImageFilterPointer;
125 using typename Superclass1::FixedImageMaskType;
126 using typename Superclass1::FixedImageMaskPointer;
127 using typename Superclass1::MovingImageMaskType;
128 using typename Superclass1::MovingImageMaskPointer;
129 using typename Superclass1::MeasureType;
130 using typename Superclass1::DerivativeType;
131 using typename Superclass1::ParametersType;
134 using typename Superclass1::ImageSamplerType;
143
145 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
146
148 itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
149
151 using typename Superclass2::ElastixType;
152 using typename Superclass2::RegistrationType;
154
160 void
162
165 void
166 Initialize() override;
167
168protected:
170 NormalizedMutualInformationMetric() { this->SetUseDerivative(true); }
171
172
175
176private:
178};
179
180} // end namespace elastix
181
182#ifndef ITK_MANUAL_INSTANTIATION
183# include "elxNormalizedMutualInformationMetric.hxx"
184#endif
185
186#endif // end #ifndef elxNormalizedMutualInformationMetric_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
A metric based on the itk::ParzenWindowNormalizedMutualInformationImageToImageMetric.
elxClassNameMacro("NormalizedMutualInformation")
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
~NormalizedMutualInformationMetric() override=default
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
ITK_DISALLOW_COPY_AND_MOVE(NormalizedMutualInformationMetric)
This class is a base class for any image sampler.
Base class for all ITK limiter function objects.
Computes the normalized mutual information between two images to be registered using a method based o...
typename ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
typename ImageSamplerType::OutputVectorContainerType ImageSampleContainerType


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