18 #ifndef itkPointSetToImageMetric_h
19 #define itkPointSetToImageMetric_h
47 template<
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;
83 Self::MovingImageDimension,
84 Self::FixedPointSetDimension >;
100 Self::MovingImageDimension >;
102 Self::MovingImageDimension >;
146 itkGetConstReferenceMacro(NumberOfPixelsCounted,
SizeValueType);
149 void SetTransformParameters(
const ParametersType & parameters)
const;
158 itkSetMacro(ComputeGradient,
bool);
159 itkGetConstReferenceMacro(ComputeGradient,
bool);
164 {
return m_Transform->GetNumberOfParameters(); }
168 virtual void Initialize();
173 void PrintSelf(std::ostream & os,
Indent indent)
const override;
191 #ifndef ITK_MANUAL_INSTANTIATION
192 #include "itkPointSetToImageMetric.hxx"
Array class with size defined at construction time.
This class is a base for the CostFunctions returning a single value.
typename FixedPointSetType::ConstPointer FixedPointSetConstPointer
Light weight base class for most itk classes.
GradientImagePointer m_GradientImage
typename TransformType::Pointer TransformPointer
Define numeric traits for std::vector.
unsigned long SizeValueType
InterpolatorPointer m_Interpolator
typename FixedPointSetType::PointDataContainer::ConstIterator PointDataIterator
Computes the gradient of an image by convolution with the first derivative of a Gaussian.
Superclass::ParametersValueType CoordinateRepresentationType
Computes similarity between a point set and an image.
TFixedPointSet FixedPointSetType
typename TransformType::ParametersType TransformParametersType
Array2D class representing a 2D array with size defined at construction time.
SizeValueType m_NumberOfPixelsCounted
Base class for all image interpolaters.
FixedPointSetConstPointer m_FixedPointSet
typename InterpolatorType::Pointer InterpolatorPointer
typename NumericTraits< MovingImagePixelType >::RealType RealType
typename GradientImageFilterType::Pointer GradientImageFilterPointer
typename TransformType::JacobianType TransformJacobianType
typename TransformType::InputPointType InputPointType
Control indentation during Print() invocation.
MovingImageConstPointer m_MovingImage
TransformPointer m_Transform
typename FixedPointSetType::PointsContainer::ConstIterator PointIterator
typename MovingImageType::ConstPointer MovingImageConstPointer
typename TMovingImage::PixelType MovingImagePixelType
A templated class holding a geometric point in n-Dimensional space.
A templated class holding a n-Dimensional covariant vector.
unsigned int GetNumberOfParameters() const override
Templated n-dimensional image class.
typename TransformType::OutputPointType OutputPointType
TMovingImage MovingImageType