22#include "_reg_localTrans.h"
23#include "_reg_resampling.h"
25#include "Transformation.h"
30inline void get_BSplineBasisValues( DTYPE basis, DTYPE *values )
32 DTYPE FF = basis*basis;
34 DTYPE MF =
static_cast<DTYPE
>(1.0 - basis);
35 values[0] =
static_cast<DTYPE
>((MF) *(MF) *(MF) / (6.0));
36 values[1] =
static_cast<DTYPE
>((3.0*FFF - 6.0*FF + 4.0) / 6.0);
37 values[2] =
static_cast<DTYPE
>((-3.0*FFF + 3.0*FF + 3.0*basis + 1.0) / 6.0);
38 values[3] =
static_cast<DTYPE
>(FFF / 6.0);
59 float* finalControlPointGridSpacing );
119 std::shared_ptr<Transformation>
DeepCopy();
146 void CPGToDVF2D( nifti_image *denseVectorFieldImage );
152 void CPGToDVF3D( nifti_image *denseVectorFieldImage );
162 nifti_image *denseVectorFieldImage,
163 bool normaliseKernel );
173 nifti_image *denseVectorFieldImage,
174 bool normaliseKernel );