18 #ifndef itkBSplineImageToImageRegistrationMethod_h 19 #define itkBSplineImageToImageRegistrationMethod_h 22 #include "itkBSplineDeformableTransform.h" 29 template <
class TImage>
51 TImage::ImageDimension );
54 typedef BSplineDeformableTransform<double,
55 itkGetStaticConstMacro( ImageDimension ),
56 itkGetStaticConstMacro( ImageDimension )>
85 itkSetMacro( ExpectedDeformationMagnitude,
double );
97 typename TransformType::RegionType::SizeType & regionSize,
98 typename TransformType::SpacingType & regionSpacing,
99 typename TransformType::OriginType & regionOrigin,
100 typename TransformType::DirectionType & regionDirection);
119 void PrintSelf( std::ostream & os, Indent indent )
const override;
124 void operator =(
const Self & );
126 double m_ExpectedDeformationMagnitude;
128 unsigned int m_NumberOfControlPoints;
130 unsigned int m_NumberOfLevels;
132 bool m_GradientOptimizeOnly;
138 #ifndef ITK_MANUAL_INSTANTIATION 139 #include "itkBSplineImageToImageRegistrationMethod.txx" 142 #endif // __ImageToImageRegistrationMethod_h BSplineTransformPointer GetBSplineTransform() const
itkStaticConstMacro(ImageDimension, unsigned int, TImage::ImageDimension)
BSplineImageToImageRegistrationMethod()
void Optimize(MetricType *metric, InterpolatorType *interpolator) override
void ComputeGridRegion(int numberOfControlPoints, typename TransformType::RegionType::SizeType ®ionSize, typename TransformType::SpacingType ®ionSpacing, typename TransformType::OriginType ®ionOrigin, typename TransformType::DirectionType ®ionDirection)
InterpolateImageFunction< TImage, double > InterpolatorType
void GenerateData() override
BSplineTransformType::Pointer BSplineTransformPointer
itkSetClampMacro(NumberOfControlPoints, unsigned int, 3, 2000)
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< const Self > ConstPointer
Simplified inverse ITK transforms.
virtual void GradientOptimize(MetricType *metric, InterpolatorType *interpolator)
OptimizedImageToImageRegistrationMethod< TImage > Superclass
SmartPointer< Self > Pointer
itkTypeMacro(BSplineImageToImageRegistrationMethod, OptimizedImageToImageRegistrationMethod)
ImageToImageMetric< TImage, TImage > MetricType
BSplineImageToImageRegistrationMethod Self
~BSplineImageToImageRegistrationMethod() override
itkGetConstMacro(ExpectedDeformationMagnitude, double)
BSplineDeformableTransform< double, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension)> BSplineTransformType
BSplineTransformType TransformType
BSplineTransformType::ParametersType ParametersType
itkGetMacro(GradientOptimizeOnly, bool)
void ResampleControlGrid(int newNumberOfControlPoints, ParametersType &newParameters)
virtual TransformType * GetTypedTransform()
virtual void MultiResolutionOptimize(MetricType *metric, InterpolatorType *interpolator)
itkSetMacro(ExpectedDeformationMagnitude, double)