/// <summary> /// Use Cubic Spline interpolation to scale the source matrix into the target matrix. /// The supplied parameter selects the spline to use. The default value of -0.5 generates /// Hermite Splines. If you call this repeatedly with the same selection parameter, /// build the cubic weighting function with 'Fun.CreateCubicTup4f(par)' and use the /// result as a paramter to the function call. /// </summary> public static void SetScaledCubic(this Matrix <float, C4f> targetMat, Matrix <float, C4f> sourceMat, double par = -0.5) { // create the cubic weighting function. Parameter a=-0.5 results in the cubic Hermite spline. var hermiteSpline = Fun.CreateCubicTup4f(par); targetMat.SetScaledCubic(sourceMat, hermiteSpline); }
public static void SetScaledBSpline3(this Matrix <float, C4f> targetMat, Matrix <float, C4f> sourceMat) { targetMat.SetScaledCubic(sourceMat, Fun.BSpline3f); }
public static void SetScaledBSpline3(this Matrix <byte, C3b> targetMat, Matrix <byte, C3b> sourceMat) { targetMat.SetScaledCubic(sourceMat, Fun.BSpline3f); }
public static void SetScaledBSpline3(this Matrix <ushort, C3us> targetMat, Matrix <ushort, C3us> sourceMat) { targetMat.SetScaledCubic(sourceMat, Fun.BSpline3f); }
public static void SetScaledBSpline3(this Matrix <__dtct__> targetMat, Matrix <__dtct__> sourceMat) { targetMat.SetScaledCubic(sourceMat, Fun.BSpline3f); }