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::FixedImageMaskType;
112 using typename Superclass::MovingImageMaskType;
114 using typename Superclass::MeasureType;
115 using typename Superclass::DerivativeType;
116 using typename Superclass::ParametersType;
117 using typename Superclass::FixedImagePixelType;
119 using typename Superclass::ImageSamplerType;
120 using typename Superclass::ImageSamplerPointer;
128
130 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
131
133 itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
134
136 MeasureType
137 GetValue(const ParametersType & parameters) const override;
138
140 void
141 GetValueAndDerivative(const ParametersType & parameters,
142 MeasureType & Value,
143 DerivativeType & Derivative) const override;
144
145protected:
148
151
153 void
154 PrintSelf(std::ostream & os, Indent indent) const override;
155
159 using typename Superclass::FixedImageIndexType;
162 using typename Superclass::FixedImagePointType;
167 using typename Superclass::PDFValueType;
168 using typename Superclass::MarginalPDFType;
169 using typename Superclass::JointPDFType;
172 using typename Superclass::JointPDFIndexType;
173 using typename Superclass::JointPDFRegionType;
174 using typename Superclass::JointPDFSizeType;
179 using typename Superclass::KernelFunctionType;
181
184 virtual void
186
193 virtual MeasureType
194 ComputeNormalizedMutualInformation(MeasureType & jointEntropy) const;
195};
196
197} // end namespace itk
198
199#ifndef ITK_MANUAL_INSTANTIATION
200# include "itkParzenWindowNormalizedMutualInformationImageToImageMetric.hxx"
201#endif
202
203#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
typename FixedImageIndexType::IndexValueType FixedImageIndexValueType
typename ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
ImageMaskSpatialObject< Self::FixedImageDimension > FixedImageMaskType
SmartPointer< MovingImageMaskType > MovingImageMaskPointer
typename BSplineInterpolatorType::CovariantVectorType MovingImageDerivativeType
typename MovingImageLimiterType::OutputType MovingImageLimiterOutputType
typename TransformType::InputPointType FixedImagePointType
typename FixedImageLimiterType::OutputType FixedImageLimiterOutputType
BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double > BSplineInterpolatorType
typename InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
ImageMaskSpatialObject< Self::MovingImageDimension > MovingImageMaskType
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 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo