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
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
70
71template <typename TFixedImage, typename 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::TransformJacobianType;
103 using typename Superclass::InterpolatorType;
104 using typename Superclass::InterpolatorPointer;
105 using typename Superclass::RealType;
106 using typename Superclass::GradientPixelType;
107 using typename Superclass::GradientImageType;
108 using typename Superclass::GradientImagePointer;
109 using typename Superclass::FixedImageMaskType;
111 using typename Superclass::MovingImageMaskType;
113 using typename Superclass::MeasureType;
114 using typename Superclass::DerivativeType;
115 using typename Superclass::ParametersType;
116 using typename Superclass::FixedImagePixelType;
118 using typename Superclass::ImageSamplerType;
119 using typename Superclass::ImageSamplerPointer;
127
129 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
130
132 itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
133
135 MeasureType
136 GetValue(const ParametersType & parameters) const override;
137
139 void
140 GetValueAndDerivative(const ParametersType & parameters,
141 MeasureType & Value,
142 DerivativeType & Derivative) const override;
143
144protected:
147
150
152 void
153 PrintSelf(std::ostream & os, Indent indent) const override;
154
156
158 using typename Superclass::FixedImageIndexType;
161 using typename Superclass::FixedImagePointType;
166 using typename Superclass::PDFValueType;
167 using typename Superclass::MarginalPDFType;
168 using typename Superclass::JointPDFType;
171 using typename Superclass::JointPDFIndexType;
172 using typename Superclass::JointPDFRegionType;
173 using typename Superclass::JointPDFSizeType;
178 using typename Superclass::KernelFunctionType;
180
183 virtual void
185
192 virtual MeasureType
193 ComputeNormalizedMutualInformation(MeasureType & jointEntropy) const;
194};
195
196} // end namespace itk
197
198#ifndef ITK_MANUAL_INSTANTIATION
199# include "itkParzenWindowNormalizedMutualInformationImageToImageMetric.hxx"
200#endif
201
202#endif // end #ifndef itkParzenWindowNormalizedMutualInformationImageToImageMetric_h
typename TransformType::OutputPointType MovingImagePointType
typename ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
typename MovingImageType::RegionType MovingImageRegionType
typename AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
FixedArray< double, Self::MovingImageDimension > MovingImageDerivativeScalesType
typename FixedImageIndexType::IndexValueType FixedImageIndexValueType
typename ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
ImageMaskSpatialObject< Self::FixedImageDimension > FixedImageMaskType
SmartPointer< MovingImageMaskType > MovingImageMaskPointer
LimiterFunctionBase< RealType, FixedImageDimension > FixedImageLimiterType
typename BSplineInterpolatorType::CovariantVectorType MovingImageDerivativeType
LimiterFunctionBase< RealType, MovingImageDimension > MovingImageLimiterType
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
virtual MeasureType ComputeNormalizedMutualInformation(MeasureType &jointEntropy) const
void GetValueAndDerivative(const ParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const override
itkOverrideGetNameOfClassMacro(ParzenWindowNormalizedMutualInformationImageToImageMetric)
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)
ParzenWindowHistogramImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType > Superclass
virtual void ComputeLogMarginalPDF(MarginalPDFType &pdf) const


Generated on 1774142652 for elastix by doxygen 1.15.0 elastix logo