go home Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Loading...
Searching...
No Matches
elxAdvancedMattesMutualInformationMetric.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 elxAdvancedMattesMutualInformationMetric_h
19#define elxAdvancedMattesMutualInformationMetric_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
23
24namespace elastix
25{
26
98
99template <typename TElastix>
101 : public itk::ParzenWindowMutualInformationImageToImageMetric<typename MetricBase<TElastix>::FixedImageType,
102 typename MetricBase<TElastix>::MovingImageType>
103 , public MetricBase<TElastix>
104{
105public:
107
114 using Pointer = itk::SmartPointer<Self>;
115 using ConstPointer = itk::SmartPointer<const Self>;
116
118 itkNewMacro(Self);
119
122
127 elxClassNameMacro("AdvancedMattesMutualInformation");
128
130 using typename Superclass1::CoordinateRepresentationType;
131 using typename Superclass1::MovingImageType;
132 using typename Superclass1::MovingImagePixelType;
133 using typename Superclass1::MovingImageConstPointer;
134 using typename Superclass1::FixedImageType;
135 using typename Superclass1::FixedImageConstPointer;
136 using typename Superclass1::FixedImageRegionType;
137 using typename Superclass1::TransformType;
138 using typename Superclass1::TransformPointer;
139 using typename Superclass1::InputPointType;
140 using typename Superclass1::OutputPointType;
141 using typename Superclass1::TransformJacobianType;
142 using typename Superclass1::InterpolatorType;
143 using typename Superclass1::InterpolatorPointer;
144 using typename Superclass1::RealType;
145 using typename Superclass1::GradientPixelType;
146 using typename Superclass1::GradientImageType;
147 using typename Superclass1::GradientImagePointer;
148 using typename Superclass1::FixedImageMaskType;
149 using typename Superclass1::FixedImageMaskPointer;
150 using typename Superclass1::MovingImageMaskType;
151 using typename Superclass1::MovingImageMaskPointer;
152 using typename Superclass1::MeasureType;
153 using typename Superclass1::DerivativeType;
154 using typename Superclass1::ParametersType;
155 using typename Superclass1::FixedImagePixelType;
156 using typename Superclass1::MovingImageRegionType;
157 using typename Superclass1::ImageSamplerType;
158 using typename Superclass1::ImageSamplerPointer;
159 using typename Superclass1::ImageSampleContainerType;
160 using typename Superclass1::ImageSampleContainerPointer;
161 using typename Superclass1::FixedImageLimiterType;
162 using typename Superclass1::MovingImageLimiterType;
163 using typename Superclass1::FixedImageLimiterOutputType;
164 using typename Superclass1::MovingImageLimiterOutputType;
165 using typename Superclass1::MovingImageDerivativeScalesType;
166
168 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
169
171 itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
172
174 using typename Superclass2::ElastixType;
175 using typename Superclass2::RegistrationType;
177
183 void
185
189 void
191
194 void
195 Initialize() override;
196
198 itkSetMacro(Param_c, double);
199 itkGetConstMacro(Param_c, double);
200
202 itkSetMacro(Param_gamma, double);
203 itkGetConstMacro(Param_gamma, double);
204
206 itkSetMacro(CurrentIteration, unsigned int);
207 itkGetConstMacro(CurrentIteration, unsigned int);
208
209protected:
212
215
216 unsigned long m_CurrentIteration;
217
219 double
220 Compute_c(unsigned long k) const;
221
222private:
224
225 double m_Param_c;
227};
228
229} // end namespace elastix
230
231#ifndef ITK_MANUAL_INSTANTIATION
232# include "elxAdvancedMattesMutualInformationMetric.hxx"
233#endif
234
235#endif // end #ifndef elxAdvancedMattesMutualInformationMetric_h
itk::ParzenWindowMutualInformationImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType > Superclass1
double Compute_c(unsigned long k) const
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
itkOverrideGetNameOfClassMacro(AdvancedMattesMutualInformationMetric)
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
elxClassNameMacro("AdvancedMattesMutualInformation")
ITK_DISALLOW_COPY_AND_MOVE(AdvancedMattesMutualInformationMetric)
itk::SingleValuedCostFunction ITKBaseType
typename ElastixType::MovingImageType MovingImageType
typename ElastixType::RegistrationBaseType RegistrationType
Computes the mutual information between two images to be registered using the method of Mattes et al.


Generated on 1774142652 for elastix by doxygen 1.15.0 elastix logo