18 #ifndef itkPointSetToImageMetric_h
19 #define itkPointSetToImageMetric_h
47 template<
typename TFixedPo
intSet,
typename TMovingImage >
73 itkStaticConstMacro(MovingImageDimension,
unsigned int,
74 TMovingImage::ImageDimension);
75 itkStaticConstMacro(FixedPointSetDimension,
unsigned int,
76 TFixedPointSet::PointDimension);
79 typedef typename FixedPointSetType::PointsContainer::ConstIterator
PointIterator;
84 itkGetStaticConstMacro(MovingImageDimension),
149 itkGetConstReferenceMacro(NumberOfPixelsCounted,
SizeValueType);
152 void SetTransformParameters(
const ParametersType & parameters)
const;
161 itkSetMacro(ComputeGradient,
bool);
162 itkGetConstReferenceMacro(ComputeGradient,
bool);
167 {
return m_Transform->GetNumberOfParameters(); }
171 virtual void Initialize(
void);
176 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
197 #ifndef ITK_MANUAL_INSTANTIATION
198 #include "itkPointSetToImageMetric.hxx"
FixedPointSetType::PointDataContainer::ConstIterator PointDataIterator
virtual unsigned int GetNumberOfParameters(void) const override
This class is a base for the CostFunctions returning a single value.
FixedPointSetType::PointsContainer::ConstIterator PointIterator
GradientImagePointer m_GradientImage
Superclass::ParametersValueType CoordinateRepresentationType
SmartPointer< Self > Pointer
TransformType::Pointer TransformPointer
TransformType::JacobianType TransformJacobianType
InterpolatorPointer m_Interpolator
TFixedPointSet FixedPointSetType
Superclass::DerivativeType DerivativeType
Image< GradientPixelType, itkGetStaticConstMacro(MovingImageDimension) > GradientImageType
GradientRecursiveGaussianImageFilter< MovingImageType, GradientImageType > GradientImageFilterType
Computes the gradient of an image by convolution with the first derivative of a Gaussian.
TransformType::OutputPointType OutputPointType
TransformType::ParametersType TransformParametersType
InterpolateImageFunction< MovingImageType, CoordinateRepresentationType > InterpolatorType
unsigned long SizeValueType
CovariantVector< RealType, itkGetStaticConstMacro(MovingImageDimension) > GradientPixelType
TMovingImage MovingImageType
NumericTraits< MovingImagePixelType >::RealType RealType
Superclass::MeasureType MeasureType
Computes similarity between a point set and an image.
Array2D class representing a 2D array with size defined at construction time.
MovingImageType::ConstPointer MovingImageConstPointer
Class to hold and manage different parameter types used during optimization.
TMovingImage::PixelType MovingImagePixelType
SingleValuedCostFunction Superclass
SmartPointer< const Self > ConstPointer
SizeValueType m_NumberOfPixelsCounted
Base class for all image interpolaters.
FixedPointSetConstPointer m_FixedPointSet
GradientImageFilterType::Pointer GradientImageFilterPointer
SmartPointer< GradientImageType > GradientImagePointer
virtual ~PointSetToImageMetric() override
Control indentation during Print() invocation.
InterpolatorType::Pointer InterpolatorPointer
TransformType::InputPointType InputPointType
MovingImageConstPointer m_MovingImage
TransformPointer m_Transform
Superclass::ParametersType ParametersType
A templated class holding a geometric point in n-Dimensional space.
A templated class holding a n-Dimensional covariant vector.
Transform< CoordinateRepresentationType, itkGetStaticConstMacro(MovingImageDimension), itkGetStaticConstMacro(FixedPointSetDimension) > TransformType
Templated n-dimensional image class.
PointSetToImageMetric Self
FixedPointSetType::ConstPointer FixedPointSetConstPointer