Vips.Interpolate

g GObject.Object GObject.Object Vips.Object Vips.Object GObject.Object->Vips.Object Vips.Interpolate Vips.Interpolate Vips.Object->Vips.Interpolate

Subclasses:None

Virtual Methods

Inherited:Vips.Object (7), GObject.Object (7)
  do_get_window_offset ()
  do_get_window_size ()
  do_interpolate (out, in_, x, y)

Properties

Inherited:Vips.Object (2)

Fields

Inherited:Vips.Object (4), GObject.Object (1)
Name Type Access Description
parent_object Vips.Object r  

Class Details

class Vips.Interpolate(**kwargs)
Bases:Vips.Object
Abstract:Yes
Structure:Vips.InterpolateClass
classmethod bilinear_static()
Returns:a bilinear interpolator
Return type:Vips.Interpolate

A convenience function that returns a bilinear interpolator you don’t need to free.

classmethod nearest_static()
Returns:a nearest-neighbour interpolator
Return type:Vips.Interpolate

A convenience function that returns a nearest-neighbour interpolator you don’t need to free.

classmethod new(nickname)
Parameters:nickname (str) – nickname for interpolator
Returns:an interpolator, or None on error.
Return type:Vips.Interpolate

Look up an interpolator from a nickname and make one. You need to free the result with GObject.Object.unref() when you’re done with it.

See also: Vips.type_find().

get_window_offset()
Returns:the interpolators required window offset
Return type:int

Look up an interpolators desired window offset.

get_window_size()
Returns:the interpolators required window size
Return type:int

Look up an interpolators desired window size.

do_get_window_offset() virtual
Returns:the interpolators required window offset
Return type:int

Look up an interpolators desired window offset.

do_get_window_size() virtual
Returns:the interpolators required window size
Return type:int

Look up an interpolators desired window size.

do_interpolate(out, in_, x, y) virtual
Parameters:
  • out (object or None) – write the interpolated pixel here
  • in (Vips.Region) – read source pixels from here
  • x (float) – interpolate value at this position
  • y (float) – interpolate value at this position