The abstract base class for the various VIPS interpolation functions.
Use "vips --list classes" to see all the interpolators available.
An interpolator consists of a function to perform the interpolation, plus
some extra data fields which tell vips how to call the function and what
data it needs.
window_size is the size of the window that the interpolator needs. For
example, a bicubic interpolator needs to see a window of 4x4 pixels to be
able to interpolate a value.
You can either have a function in get_window_size which returns the window
that a specific interpolator needs, or you can leave get_window_size %NULL
and set a constant value in window_size.
window_offset is how much to offset the window up and left of (x, y). For
example, a bicubic interpolator will want a window_offset of 1.
You can either have a function in get_window_offset which returns the
offset that a specific interpolator needs, or you can leave
get_window_offset %NULL and set a constant value in window_offset.
You also need to set nickname and description in #VipsObject.
See also: #VipsInterpolateMethod, #VipsObject,
vips_interpolate_bilinear_static().
The abstract base class for the various VIPS interpolation functions. Use "vips --list classes" to see all the interpolators available.
An interpolator consists of a function to perform the interpolation, plus some extra data fields which tell vips how to call the function and what data it needs.
window_size
is the size of the window that the interpolator needs. For example, a bicubic interpolator needs to see a window of 4x4 pixels to be able to interpolate a value.You can either have a function in
get_window_size
which returns the window that a specific interpolator needs, or you can leaveget_window_size
%NULL and set a constant value inwindow_size
.window_offset
is how much to offset the window up and left of (x, y). For example, a bicubic interpolator will want awindow_offset
of 1.You can either have a function in
get_window_offset
which returns the offset that a specific interpolator needs, or you can leaveget_window_offset
%NULL and set a constant value inwindow_offset
.You also need to set
nickname
anddescription
in #VipsObject.See also: #VipsInterpolateMethod, #VipsObject, vips_interpolate_bilinear_static().