Class: Vips::Interpolate

Inherits:
Object
  • Object
show all
Defined in:
lib/vips8/interpolate.rb

Overview

An interpolator. One of these can be given to operations like affine or mapim to select the type of pixel interpolation to use.

To see all interpolators supported by your libvips, try

$ vips -l interpolate

But at least these should be available:

  • :nearest Nearest-neighbour interpolation.
  • :bilinear Bilinear interpolation.
  • :bicubic Bicubic interpolation.
  • :lbb Reduced halo bicubic interpolation.
  • :nohalo Edge sharpening resampler with halo reduction.
  • :vsqbs B-Splines with antialiasing smoothing.

For example:

 im = im.affine :interpolate => Vips::Interpolate.new :bicubic

Class Method Summary collapse

Class Method Details

.new(name, opts = {}) ⇒ Interpolate

Returns constructed interpolator.

Parameters:

  • name (Symbol)

    interpolator to create

  • opts (Hash) (defaults to: {})

    Set of options

Returns:

[View source]

# File 'lib/vips8/interpolate.rb', line 31