18#ifndef itkImageToSpatialObjectMetric_h
19#define itkImageToSpatialObjectMetric_h
24#include "vnl/vnl_vector_fixed.h"
59template <
typename TFixedImage,
typename TMovingSpatialObject>
80 static constexpr unsigned int ImageDimension = FixedImageType::ImageDimension;
83 static constexpr unsigned int ObjectDimension = MovingSpatialObjectType::ObjectDimension;
100 using VectorType = vnl_vector_fixed<double, Self::ObjectDimension>;
182#ifndef ITK_MANUAL_INSTANTIATION
183# include "itkImageToSpatialObjectMetric.hxx"
unsigned int GetNumberOfParameters() const override
static constexpr unsigned int ObjectDimension
typename FixedImageType::Pointer FixedImagePointer
typename TransformType::InputPointType InputPointType
typename MovingSpatialObjectType::Pointer MovingSpatialObjectPointer
TransformPointer m_Transform
Superclass::ParametersValueType CoordinateRepresentationType
typename MovingSpatialObjectType::ConstPointer MovingSpatialObjectConstPointer
MovingSpatialObjectConstPointer m_MovingSpatialObject
Superclass::DerivativeType DerivativeType
Transform< CoordinateRepresentationType, Self::ObjectDimension, Self::ImageDimension > TransformType
typename TransformType::JacobianType TransformJacobianType
ImageToSpatialObjectMetric()
static constexpr unsigned int ImageDimension
ParametersType m_LastTransformParameters
SmartPointer< const Self > ConstPointer
MeasureType m_MatchMeasure
typename TransformType::Pointer TransformPointer
vnl_vector_fixed< double, Self::ObjectDimension > VectorType
ImageToSpatialObjectMetric Self
LinearInterpolateImageFunction< TFixedImage, CoordinateRepresentationType > InterpolatorType
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< Self > Pointer
typename TransformType::ParametersType TransformParametersType
typename InterpolatorType::Pointer InterpolatorPointer
virtual void Initialize()
InterpolatorPointer m_Interpolator
SingleValuedCostFunction Superclass
~ImageToSpatialObjectMetric() override=default
Superclass::MeasureType MeasureType
TMovingSpatialObject MovingSpatialObjectType
Superclass::ParametersType ParametersType
typename FixedImageType::ConstPointer FixedImageConstPointer
void GetValueAndDerivative(const ParametersType ¶meters, MeasureType &Value, DerivativeType &Derivative) const override=0
FixedImageConstPointer m_FixedImage
typename TransformType::OutputPointType OutputPointType
TFixedImage FixedImageType
DerivativeType m_MatchMeasureDerivatives
Control indentation during Print() invocation.
Linearly interpolate an image at specified positions.
SmartPointer< Self > Pointer
Array< ParametersValueType > DerivativeType
Superclass::ParametersValueType ParametersValueType
SingleValuedCostFunction()=default
Superclass::ParametersType ParametersType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....