18#ifndef itkPointSetToImageMetric_h
19#define itkPointSetToImageMetric_h
47template <
typename TFixedPo
intSet,
typename TMovingImage>
75 static constexpr unsigned int MovingImageDimension = TMovingImage::ImageDimension;
76 static constexpr unsigned int FixedPointSetDimension = TFixedPointSet::PointDimension;
78 using PointIterator =
typename FixedPointSetType::PointsContainer::ConstIterator;
153 itkSetMacro(ComputeGradient,
bool);
154 itkGetConstReferenceMacro(ComputeGradient,
bool);
161 return m_Transform->GetNumberOfParameters();
184 bool m_ComputeGradient{};
190#ifndef ITK_MANUAL_INSTANTIATION
191# include "itkPointSetToImageMetric.hxx"
Array2D class representing a 2D array.
Array class with size defined at construction time.
A templated class holding a n-Dimensional covariant vector.
Computes the gradient of an image by convolution with the first derivative of a Gaussian.
Templated n-dimensional image class.
Control indentation during Print() invocation.
Base class for all image interpolators.
Light weight base class for most itk classes.
Class to hold and manage different parameter types used during optimization.
Computes similarity between a point set and an image.
TFixedPointSet FixedPointSetType
typename TransformType::InputPointType InputPointType
unsigned int GetNumberOfParameters() const override
void SetTransformParameters(const ParametersType ¶meters) const
typename TransformType::Pointer TransformPointer
TMovingImage MovingImageType
typename MovingImageType::ConstPointer MovingImageConstPointer
virtual void Initialize()
Superclass::ParametersValueType CoordinateRepresentationType
typename TransformType::JacobianType TransformJacobianType
typename FixedPointSetType::ConstPointer FixedPointSetConstPointer
typename TMovingImage::PixelType MovingImagePixelType
typename GradientImageFilterType::Pointer GradientImageFilterPointer
typename FixedPointSetType::PointDataContainer::ConstIterator PointDataIterator
void PrintSelf(std::ostream &os, Indent indent) const override
~PointSetToImageMetric() override=default
typename NumericTraits< MovingImagePixelType >::RealType RealType
typename FixedPointSetType::PointsContainer::ConstIterator PointIterator
typename InterpolatorType::Pointer InterpolatorPointer
typename TransformType::ParametersType TransformParametersType
typename TransformType::OutputPointType OutputPointType
A templated class holding a geometric point in n-Dimensional space.
This class is a base for the CostFunctions returning a single value.
Superclass::ParametersType ParametersType
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType