interpolation

interpolation — general fucntions used for interpolation

Synopsis




enum        GwyInterpolationType;
gdouble     gwy_interpolation_get_dval      (gdouble x,
                                             gdouble x1_,
                                             gdouble y1_,
                                             gdouble x2_,
                                             gdouble y2_,
                                             GwyInterpolationType interpolation);

Description

Details

enum GwyInterpolationType

typedef enum {
  GWY_INTERPOLATION_NONE      = 0,
  GWY_INTERPOLATION_ROUND     = 1,
  GWY_INTERPOLATION_BILINEAR  = 2,
  GWY_INTERPOLATION_KEY       = 3,
  GWY_INTERPOLATION_BSPLINE   = 4,
  GWY_INTERPOLATION_OMOMS     = 5,
  GWY_INTERPOLATION_NNA       = 6
} GwyInterpolationType;

Interpolation type selection.

GWY_INTERPOLATION_NONEno interpolation, resulting values should not be directly used
GWY_INTERPOLATION_ROUNDround interpolation (nearest neighbour interpolation)
GWY_INTERPOLATION_BILINEARbilinear interpolation
GWY_INTERPOLATION_KEYKey interpolation
GWY_INTERPOLATION_BSPLINEBspline interpolation
GWY_INTERPOLATION_OMOMSO-moms interpolation
GWY_INTERPOLATION_NNAnearest neighbour approximation

gwy_interpolation_get_dval ()

gdouble     gwy_interpolation_get_dval      (gdouble x,
                                             gdouble x1_,
                                             gdouble y1_,
                                             gdouble x2_,
                                             gdouble y2_,
                                             GwyInterpolationType interpolation);

x:
x1_:
y1_:
x2_:
y2_:
interpolation:
Returns :