Vips.InterpolateClass

Fields

Name

Type

Access

Description

get_window_offset

object

r

get_window_size

object

r

interpolate

Vips.InterpolateMethod

r

the interpolation method

parent_class

Vips.ObjectClass

r

window_offset

int

r

or just set this for a constant window offset

window_size

int

r

or just set this for a constant window size

Methods

None

Details

class Vips.InterpolateClass

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 None 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 None and set a constant value in window_offset.

You also need to set nickname and description in Vips.Object.

See also: Vips.InterpolateMethod, Vips.Object, Vips.Interpolate.bilinear_static().