Class: Vips::Interpolate
- Inherits:
-
Object
- Object
- Vips::Interpolate
- Defined in:
- lib/vips/interpolate.rb
Overview
An interpolator. One of these can be given to operations like Vips::Image#affine or Vips::Image#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:
-
:nearestNearest-neighbour interpolation. -
:bilinearBilinear interpolation. -
:bicubicBicubic interpolation. -
:lbbReduced halo bicubic interpolation. -
:nohaloEdge sharpening resampler with halo reduction. -
:vsqbsB-Splines with antialiasing smoothing.
For example:
im = im.affine [2, 0, 0, 2], :interpolate => Vips::Interpolate.new(:bicubic)
Class Method Summary collapse
-
.new(name, opts = {}) ⇒ Interpolate
Constructed interpolator.
Class Method Details
.new(name, opts = {}) ⇒ Interpolate
Returns constructed interpolator.
|
|
# File 'lib/vips/interpolate.rb', line 31
|