19 #include "_reg_localTrans.h" 20 #include "_reg_resampling.h" 21 #include "nifti1_io.h" 22 #include "Transformation.h" 27 inline void get_BSplineBasisValues( DTYPE basis, DTYPE *values )
29 DTYPE FF = basis*basis;
31 DTYPE MF =
static_cast<DTYPE
>(1.0 - basis);
32 values[0] =
static_cast<DTYPE
>((MF) *(MF) *(MF) / (6.0));
33 values[1] =
static_cast<DTYPE
>((3.0*FFF - 6.0*FF + 4.0) / 6.0);
34 values[2] =
static_cast<DTYPE
>((-3.0*FFF + 3.0*FF + 3.0*basis + 1.0) / 6.0);
35 values[3] =
static_cast<DTYPE
>(FFF / 6.0);
44 typedef Transformation::PrecisionType PrecisionType;
56 float* finalControlPointGridSpacing );
79 void SetParameters( PrecisionType* paramsIn,
bool parametersAreDisplacements );
120 std::shared_ptr<Transformation>
DeepCopy();
147 void CPGToDVF2D( nifti_image *denseVectorFieldImage );
153 void CPGToDVF3D( nifti_image *denseVectorFieldImage );
163 nifti_image *denseVectorFieldImage,
164 bool normaliseKernel );
173 void DVFToCPG3D( nifti_image *controlPointGridImage,
174 nifti_image *denseVectorFieldImage,
175 bool normaliseKernel );
190 int lastInitialisedLevel;
Definition: NiftyResample.h:39