go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkParzenWindowNormalizedMutualInformationImageToImageMetric.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
19#ifndef itkParzenWindowNormalizedMutualInformationImageToImageMetric_h
20#define itkParzenWindowNormalizedMutualInformationImageToImageMetric_h
21
23
24namespace itk
25{
26
71template <class TFixedImage, class TMovingImage>
73 : public ParzenWindowHistogramImageToImageMetric<TFixedImage, TMovingImage>
74{
75public:
77
81 using Pointer = SmartPointer<Self>;
82 using ConstPointer = SmartPointer<const Self>;
83
85 itkNewMacro(Self);
86
89
91 using typename Superclass::CoordinateRepresentationType;
92 using typename Superclass::MovingImageType;
93 using typename Superclass::MovingImagePixelType;
94 using typename Superclass::MovingImageConstPointer;
95 using typename Superclass::FixedImageType;
96 using typename Superclass::FixedImageConstPointer;
97 using typename Superclass::FixedImageRegionType;
98 using typename Superclass::TransformType;
99 using typename Superclass::TransformPointer;
100 using typename Superclass::InputPointType;
101 using typename Superclass::OutputPointType;
102 using typename Superclass::TransformParametersType;
103 using typename Superclass::TransformJacobianType;
104 using typename Superclass::InterpolatorType;
105 using typename Superclass::InterpolatorPointer;
106 using typename Superclass::RealType;
107 using typename Superclass::GradientPixelType;
108 using typename Superclass::GradientImageType;
109 using typename Superclass::GradientImagePointer;
110 using typename Superclass::GradientImageFilterType;
111 using typename Superclass::GradientImageFilterPointer;
112 using typename Superclass::FixedImageMaskType;
113 using typename Superclass::FixedImageMaskPointer;
114 using typename Superclass::MovingImageMaskType;
115 using typename Superclass::MovingImageMaskPointer;
116 using typename Superclass::MeasureType;
117 using typename Superclass::DerivativeType;
118 using typename Superclass::ParametersType;
119 using typename Superclass::FixedImagePixelType;
121 using typename Superclass::ImageSamplerType;
122 using typename Superclass::ImageSamplerPointer;
130
132 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
133
135 itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
136
138 MeasureType
139 GetValue(const ParametersType & parameters) const override;
140
142 void
143 GetValueAndDerivative(const ParametersType & parameters,
144 MeasureType & Value,
145 DerivativeType & Derivative) const override;
146
147protected:
150
153
155 void
156 PrintSelf(std::ostream & os, Indent indent) const override;
157
161 using typename Superclass::FixedImageIndexType;
164 using typename Superclass::FixedImagePointType;
170 using typename Superclass::PDFValueType;
171 using typename Superclass::MarginalPDFType;
172 using typename Superclass::JointPDFType;
175 using typename Superclass::JointPDFIndexType;
176 using typename Superclass::JointPDFRegionType;
177 using typename Superclass::JointPDFSizeType;
182 using typename Superclass::KernelFunctionType;
184
187 virtual void
189
196 virtual MeasureType
197 ComputeNormalizedMutualInformation(MeasureType & jointEntropy) const;
198};
199
200} // end namespace itk
201
202#ifndef ITK_MANUAL_INSTANTIATION
203# include "itkParzenWindowNormalizedMutualInformationImageToImageMetric.hxx"
204#endif
205
206#endif // end #ifndef itkParzenWindowNormalizedMutualInformationImageToImageMetric_h
This class is a base class for any image sampler.
Kernel used for density estimation and nonparameteric regression.
Base class for all ITK limiter function objects.
A base class for image metrics based on a joint histogram computed using Parzen Windowing.
typename TransformType::OutputPointType MovingImagePointType
typename ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
typename MovingImageType::RegionType MovingImageRegionType
typename AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
GradientImageFilter< MovingImageType, RealType, RealType > CentralDifferenceGradientFilterType
typename FixedImageIndexType::IndexValueType FixedImageIndexValueType
typename MovingImageType::IndexType MovingImageIndexType
typename ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double > BSplineInterpolatorType
typename BSplineInterpolatorType::CovariantVectorType MovingImageDerivativeType
typename MovingImageLimiterType::OutputType MovingImageLimiterOutputType
typename TransformType::InputPointType FixedImagePointType
typename FixedImageLimiterType::OutputType FixedImageLimiterOutputType
typename InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
Computes the normalized mutual information between two images to be registered using a method based o...
virtual MeasureType ComputeNormalizedMutualInformation(MeasureType &jointEntropy) const
void GetValueAndDerivative(const ParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const override
ITK_DISALLOW_COPY_AND_MOVE(ParzenWindowNormalizedMutualInformationImageToImageMetric)
void PrintSelf(std::ostream &os, Indent indent) const override
MeasureType GetValue(const ParametersType &parameters) const override
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
virtual void ComputeLogMarginalPDF(MarginalPDFType &pdf) const


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