18#ifndef itkKNNGraphAlphaMutualInformationImageToImageMetric_h
19#define itkKNNGraphAlphaMutualInformationImageToImageMetric_h
41#include "itkArray2D.h"
73template <
class TFixedImage,
class TMovingImage>
93 using typename Superclass::CoordinateRepresentationType;
94 using typename Superclass::MovingImageType;
95 using typename Superclass::MovingImagePixelType;
96 using typename Superclass::MovingImageConstPointer;
97 using typename Superclass::FixedImageType;
98 using typename Superclass::FixedImageConstPointer;
99 using typename Superclass::FixedImageRegionType;
100 using typename Superclass::TransformType;
101 using typename Superclass::TransformPointer;
102 using typename Superclass::InputPointType;
103 using typename Superclass::OutputPointType;
104 using typename Superclass::TransformParametersType;
105 using typename Superclass::TransformJacobianType;
106 using typename Superclass::InterpolatorType;
107 using typename Superclass::InterpolatorPointer;
108 using typename Superclass::RealType;
109 using typename Superclass::GradientPixelType;
110 using typename Superclass::GradientImageType;
111 using typename Superclass::GradientImagePointer;
116 using typename Superclass::MeasureType;
117 using typename Superclass::DerivativeType;
118 using typename Superclass::ParametersType;
182 std::string splittingRuleFixed,
183 std::string splittingRuleMoving,
184 std::string splittingRuleJoint);
188 SetANNbdTree(
unsigned int bucketSize, std::string splittingRule, std::string shrinkingRule);
193 std::string splittingRuleFixed,
194 std::string splittingRuleMoving,
195 std::string splittingRuleJoint,
196 std::string shrinkingRuleFixed,
197 std::string shrinkingRuleMoving,
198 std::string shrinkingRuleJoint);
231 GetDerivative(
const TransformParametersType & parameters, DerivativeType & Derivative)
const override;
235 GetValue(
const TransformParametersType & parameters)
const override;
241 DerivativeType & Derivative)
const override;
244 itkSetClampMacro(Alpha,
double, 0.0, 1.0);
247 itkGetConstReferenceMacro(Alpha,
double);
250 itkSetClampMacro(AvoidDivisionBy,
double, 0.0, 1.0);
253 itkGetConstReferenceMacro(AvoidDivisionBy,
double);
264 PrintSelf(std::ostream & os, Indent indent)
const override;
275 double m_Alpha{ 0.99 };
276 double m_AvoidDivisionBy{ 1e-10 };
280 using typename Superclass::FixedImagePointType;
281 using typename Superclass::MovingImagePointType;
282 using typename Superclass::MovingImageDerivativeType;
283 using typename Superclass::MovingImageContinuousIndexType;
305 const bool doDerivative,
334 const MeasureType & distance_M,
335 const MeasureType & distance_J,
336 DerivativeType & dGamma_M,
337 DerivativeType & dGamma_J)
const;
342#ifndef ITK_MANUAL_INSTANTIATION
343# include "itkKNNGraphAlphaMutualInformationImageToImageMetric.hxx"
typename ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
typename MovingImageType::RegionType MovingImageRegionType
typename AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
typename FixedImageType::PixelType FixedImagePixelType
typename DerivativeType::ValueType DerivativeValueType
typename ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
typename MovingImageLimiterType::OutputType MovingImageLimiterOutputType
typename FixedImageLimiterType::OutputType FixedImageLimiterOutputType
typename ImageSamplerType::Pointer ImageSamplerPointer
SmartPointer< Self > Pointer
Array< int > IndexArrayType
Array< double > DistanceArrayType
SmartPointer< Self > Pointer
This class is a base class for any image sampler.
Base class for all ITK limiter function objects.
A ListSampleBase that internally uses a CArray, which can be accessed.