33#ifndef itkSingleValuedPointSetToPointSetMetric_h
34#define itkSingleValuedPointSetToPointSetMetric_h
36#include "itkImageBase.h"
38#include "itkSingleValuedCostFunction.h"
40#include "itkImageMaskSpatialObject.h"
41#include "itkPointSet.h"
60template <
class TFixedPo
intSet,
class TMovingPo
intSet>
85 using PointIterator =
typename FixedPointSetType::PointsContainer::ConstIterator;
109 using Superclass::MeasureType;
110 using Superclass::DerivativeType;
112 using Superclass::ParametersType;
143 return this->m_Transform->GetNumberOfParameters();
170 itkSetMacro(UseMetricSingleThreaded,
bool);
171 itkGetConstReferenceMacro(UseMetricSingleThreaded,
bool);
172 itkBooleanMacro(UseMetricSingleThreaded);
180 PrintSelf(std::ostream & os, Indent indent)
const override;
189 mutable unsigned int m_NumberOfPointsCounted{ 0 };
192 bool m_UseMetricSingleThreaded{
true };
197#ifndef ITK_MANUAL_INSTANTIATION
198# include "itkSingleValuedPointSetToPointSetMetric.hxx"
A dummy metric to generate transformed meshes each iteration.
Computes similarity between two point sets.
typename FixedPointSetType::PixelType FixedPointSetPixelType
typename FixedImageMaskType::Pointer FixedImageMaskPointer
SmartPointer< const Self > ConstPointer
typename MovingImageMaskType::ConstPointer MovingImageMaskConstPointer
ITK_DISALLOW_COPY_AND_MOVE(SingleValuedPointSetToPointSetMetric)
typename MovingPointSetType::PixelType MovingPointSetPixelType
itkStaticConstMacro(FixedPointSetDimension, unsigned int, TFixedPointSet::PointDimension)
virtual void Initialize()
typename TransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
typename FixedImageMaskType::ConstPointer FixedImageMaskConstPointer
itkStaticConstMacro(MovingPointSetDimension, unsigned int, TMovingPointSet::PointDimension)
typename TransformType::InputPointType InputPointType
typename TransformType::Pointer TransformPointer
typename DerivativeType::ValueType DerivativeValueType
void PrintSelf(std::ostream &os, Indent indent) const override
typename MovingPointSetType::ConstPointer MovingPointSetConstPointer
typename FixedPointSetType::ConstPointer FixedPointSetConstPointer
SingleValuedPointSetToPointSetMetric()=default
~SingleValuedPointSetToPointSetMetric() override=default
unsigned int GetNumberOfParameters() const override
typename MovingImageMaskType::Pointer MovingImageMaskPointer
ImageMaskSpatialObject< Self::MovingPointSetDimension > MovingImageMaskType
TMovingPointSet MovingPointSetType
virtual void BeforeThreadedGetValueAndDerivative(const TransformParametersType ¶meters) const
Superclass::ParametersValueType CoordinateRepresentationType
typename TransformType::ParametersType TransformParametersType
ImageMaskSpatialObject< Self::FixedPointSetDimension > FixedImageMaskType
typename TransformType::JacobianType TransformJacobianType
TFixedPointSet FixedPointSetType
typename TransformType::OutputPointType OutputPointType
void SetTransformParameters(const ParametersType ¶meters) const
typename FixedPointSetType::PointDataContainer::ConstIterator PointDataIterator
typename MovingPointSetType::ConstPointer MovingPointSetConstPointer
typename FixedPointSetType::PointsContainer::ConstIterator PointIterator