18 #ifndef itkImageToSpatialObjectMetric_h 19 #define itkImageToSpatialObjectMetric_h 24 #include "vnl/vnl_vector_fixed.h" 60 template<
typename TFixedImage,
typename TMovingSpatialObject >
81 FixedImageType::ImageDimension);
85 MovingSpatialObjectType::ObjectDimension);
106 typedef vnl_vector_fixed< double,
119 typedef typename MovingSpatialObjectType::Pointer
136 itkSetConstObjectMacro(FixedImage, FixedImageType);
137 itkGetConstObjectMacro(FixedImage, FixedImageType);
141 itkSetConstObjectMacro(MovingSpatialObject, MovingSpatialObjectType);
142 itkGetConstObjectMacro(MovingSpatialObject, MovingSpatialObjectType);
146 itkSetObjectMacro(Interpolator, InterpolatorType);
149 itkGetModifiableObjectMacro(Interpolator, InterpolatorType);
154 DerivativeType & Derivative)
const ITK_OVERRIDE = 0;
165 itkGetConstReferenceMacro(LastTransformParameters, ParametersType);
173 virtual ~ImageToSpatialObjectMetric() {}
176 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
189 #ifndef ITK_MANUAL_INSTANTIATION 190 #include "itkImageToSpatialObjectMetric.hxx" virtual void PrintSelf(std::ostream &os, Indent indent) const override
static const unsigned int ImageDimension
TransformType::OutputPointType OutputPointType
Computes similarity between a moving spatial obejct and an Image to be registered.
Superclass::ParametersValueType CoordinateRepresentationType
This class is a base for the CostFunctions returning a single value.
TransformType::InputPointType InputPointType
TransformType::ParametersType TransformParametersType
vnl_vector_fixed< double, itkGetStaticConstMacro(ObjectDimension) > VectorType
InterpolatorType::Pointer InterpolatorPointer
void operator=(const Self &)
virtual void Initialize(void)
virtual void GetValueAndDerivative(const ParametersType ¶meters, MeasureType &Value, DerivativeType &Derivative) const override=0
TransformType::JacobianType TransformJacobianType
TFixedImage FixedImageType
Transform< CoordinateRepresentationType, itkGetStaticConstMacro(ObjectDimension), itkGetStaticConstMacro(ImageDimension) > TransformType
FixedImageConstPointer m_FixedImage
DerivativeType m_MatchMeasureDerivatives
virtual unsigned int GetNumberOfParameters(void) const override
LinearInterpolateImageFunction< TFixedImage, CoordinateRepresentationType > InterpolatorType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
static const unsigned int ObjectDimension
SmartPointer< const Self > ConstPointer
TMovingSpatialObject MovingSpatialObjectType
TransformType::Pointer TransformPointer
ParametersType m_LastTransformParameters
Array< ParametersValueType > DerivativeType
SmartPointer< Self > Pointer
Array2D class representing a 2D array with size defined at construction time.
Class to hold and manage different parameter types used during optimization.
SingleValuedCostFunction Superclass
Standard exception handling object.
FixedImageType::ConstPointer FixedImageConstPointer
Linearly interpolate an image at specified positions.
TransformPointer m_Transform
FixedImageType::Pointer FixedImagePointer
Superclass::ParametersType ParametersType
Superclass::ParametersType ParametersType
Superclass::DerivativeType DerivativeType
Superclass::MeasureType MeasureType
Superclass::ParametersValueType ParametersValueType
Control indentation during Print() invocation.
MeasureType m_MatchMeasure
ImageToSpatialObjectMetric Self
Base class for most ITK classes.
ImageToSpatialObjectMetric(const Self &)
A templated class holding a geometric point in n-Dimensional space.
MovingSpatialObjectType::Pointer MovingSpatialObjectPointer
MovingSpatialObjectConstPointer m_MovingSpatialObject
InterpolatorPointer m_Interpolator
MovingSpatialObjectType::ConstPointer MovingSpatialObjectConstPointer