Gjsify LogoGjsify Logo

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().

record

Hierarchy

  • InterpolateClass

Index

Constructors

Properties

interpolate: InterpolateMethod

the interpolation method

field
parent_class: Vips.ObjectClass
window_offset: number

or just set this for a constant window offset

field
window_size: number

or just set this for a constant window size

field
name: string

Methods

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method