1 #ifndef TIL_RECURSIVE_FILTER_CUBIC_SPLINE_H 2 #define TIL_RECURSIVE_FILTER_CUBIC_SPLINE_H 24 template <
typename TImage >
27 typedef typename TImage::value_type value_type;
28 const value_type z1 =
::sqrt(3.0) - 2;
36 filter1.setFilter(1, -z1);
37 filter2.setFilter(-z1, -z1);
43 if (im.dim()[axis] > 1)
void sqrt(const TImage &in, TImage &out)
void similarityCheck(const TImage1 &im1, const TImage2 &im2)
Check whether both images are allocated and have the same size and voxel size.
Belongs to package Box Do not include directly, include til/Box.h instead.
void cubicSplineCoefficients(const TImage &im, TImage &coeffs)
Replaces im by a pre-processed version of im for cubic spline interpolation.
General macros, definitions and functions.
void filterAlongAxis(const TImage &im, TImage &out, ImageAxis axis, const TLineFilter &filter)